How using Java API it is possible to construct next query: (f_name="a*" or
f_name="b*") and (l_name="c*")
-
- wildcard
Thanks
How using Java API it is possible to construct next query: (f_name="a*" or
f_name="b*") and (l_name="c*")
Thanks
Le 22 août 2011 à 12:02, Gennady Novik a écrit :
How using Java API it is possible to construct next query: (f_name="a*" or f_name="b*") and (l_name="c*")
- wildcard
it is possible, look at the prefix query:
Nicolas
To add to the mentioned answer below, all queries / filters are provided
through simple static factories either using the QueryBuilders or
FilterBuilders classes. Check how to use it here:
Elasticsearch Platform — Find real-time answers at scale | Elastic. The
search page has an example of how to use it when searching:
Elasticsearch Platform — Find real-time answers at scale | Elastic.
2011/8/22 Nicolas Lalevée nicolas.lalevee@hibnet.org
Le 22 août 2011 à 12:02, Gennady Novik a écrit :
How using Java API it is possible to construct next query: (f_name="a*"
or f_name="b*") and (l_name="c*")
- wildcard
it is possible, look at the prefix query:
Elasticsearch Platform — Find real-time answers at scale | ElasticNicolas
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.