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
specific field.
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?
Thanks
kimchy
(Shay Banon)
November 24, 2011, 3:31pm
2
Use the query_string query for it?
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
.
On Wed, Nov 23, 2011 at 9:07 PM, Shane Witbeck shane@digitalsanctum.com wrote:
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
specific field.
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?
Thanks