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/5c9e92e8-0404-4be2-b62b-f1daca44ddaf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to