Use a filtered query, not an outer filter. You only want to use that
outer filter when you are faceting and don't want the filter to change the
facet counts.
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html
Thanks,
Matt Weber
On Thu, Jan 9,
Hi,
I had implemented ES search query for all our use cases but when i came to
know that some of our use cases can be solved by filters I implemented that
but I dont see any gain (in response time) in filters. My search queries
are
1. Filter
{
size : 100,
query : {
match_all : {
You probably won't see any difference the first time you execute it unless you
are using warmers.
With a second query, you should see the difference.
How many documents you have in your dataset?
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr
Le 9
I have 100,000 documents which are similar. In response I am getting the
whole document not just Id.
I am executing the query multiple times.
Thanks ,
Arjit
On Thu, Jan 9, 2014 at 1:06 PM, David Pilato da...@pilato.fr wrote:
You probably won't see any difference the first time you execute it