Dear ElasticSearchUser,
Please advise me what is the difference between these scenario
-
client.prepareSearch("indexname").setQuery(QueryBuilders.filteredQuery(qb, fb))
-
client.prepareSearch("indexname").setQuery(qb).setFilter(fb)
Regards,
LP
Dear ElasticSearchUser,
Please advise me what is the difference between these scenario
client.prepareSearch("indexname").setQuery(QueryBuilders.filteredQuery(qb, fb))
client.prepareSearch("indexname").setQuery(qb).setFilter(fb)
Regards,
LP
The filteredQuery option will be faster, the option to set a filter on the
search request is there when facets are used.
On Thu, May 17, 2012 at 3:01 PM, andavar andavar_laxman@rediffmail.comwrote:
Dear ElasticSearchUser,
Please advise me what is the difference between these scenario
*
1.
client.prepareSearch("indexname").setQuery(QueryBuilders.filteredQuery(qb,
fb))
- client.prepareSearch("indexname").setQuery(qb).setFilter(fb)*
Regards,
LP--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/In-which-case-search-will-be-fast-tp3999027.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.
© 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.