My ES project is coming along nicely but now I'd like more robust searches.
Given a single search field, perform logical AND's or OR's using a
combination of the following:
- quoted exact phrase searches. for example "this is a test"
- prefixes such as "wiki:foo" or "-wiki:foo" which will include or
exclude "foo" in documents of type "wiki"
- if only a single number is entered, then do a term search on a
I'd like to leverage ES's out-of-the-box functionality as much as possible.
What's the best way to do the above customizations using the Java API?