Add minLength option

Add minLength option to specify the minimum query length that will trigger a search - this is useful if the database is large and would return too many results for short query strings.