7 Commits

Author SHA1 Message Date
Jörg Prante
8aa64c6b76 Query: add option for analyze wildcard/prefix also to simple_query_string query
The query_string query has an option for analyzing wildcard/prefix () by a best effort approach.

This adds `analyze_wildcard` option also to simple_query_string.

The default is set to `false` so the existing behavior of simple_query_string is unchanged.
2014-11-11 10:12:17 +01:00
Lee Hinman
26bc940101 Make simple_query_string leniency more fine-grained
Previously, the leniency was on a per-query basis, with each query being
parsed into multiple queries, one for each field. If any one of these
queries failed, the entire query was discarded in the name of being
lenient.

Now query parts will only be discarded if they fail for a particular
field, the entire query is not discarded. This helps when performing a
query over a numeric and string field, as only the sub-queries that are
invalid due to format exceptions will be discarded.

Also moves the `simple_query_string` queries out of SimpleQueryTests and
into a dedicated SimpleQueryStringTests class.

Fixes 
2014-10-22 10:31:34 +02:00
Simon Willnauer
30d7b8de2f Upgrade to Lucene 4.7
Closes 
Closes 
Closes 
2014-02-26 22:21:10 +01:00
Lee Hinman
5429019920 refactor SimpleQueryParser settings into separate class, add "lenient" option
Fixes 
2014-02-26 10:40:34 -07:00
Lee Hinman
8f8cc7205d Add "locale" parameter to query_string and simple_query_string
Fixes 

Remove java 7 specific Locale functions, add "coming[1.1.0]" to documentation

add LocaleUtils utility class for dealing with Locale functions
2014-02-20 15:53:08 -07:00
Lee Hinman
de91ffd0ce Fix license header for SimpleQueryParser 2014-02-14 11:55:49 -07:00
Lee Hinman
c97bcc3602 Add support for lowercase_expanded_terms flag to simple_query_string
Default the flag to true, making simple_query_string behave similarly to
query_string

Fixes 
2014-02-14 11:51:23 -07:00