Thanks Binh.
I had tried with using the Term Filter .I am seeing little performance
improvement but not as expected (expected 1sec)
Any pointers.
Thanks
On Wednesday, January 29, 2014 1:29:31 PM UTC-8, Binh Ly wrote:
>
> It sounds like you don't really need scoring so you might want to use
> filters instead of the query_string query. Perhaps you can try the terms
> filter instead. Maybe something like this:
>
> String[] terms = { "sn1", "sn2" };
> QueryBuilder q =
> QueryBuilders.filteredQuery(QueryBuilders.matchAllQuery(),
> FilterBuilders.termsFilter("sn", terms));
>
> Here is more info on why filters are better speedwise:
>
> http://www.elasticsearch.org/blog/all-about-elasticsearch-filter-bitsets/
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/d9088182-282e-492b-a6b6-8c49204014a3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.