Type filtering


(Björn Ebers) #1

Hi,

is there a query performance difference between "type filter" and filtering
with type-url-segment

if an index contains a huge amount of documents?

POST ///_search

{

  "query": {"match_all": {}}

}

vs.

POST //_search

{

"query": {

   "filtered": {

      "query": {"match_all": {}},

      "filter": {

          "type": {

             "value": "<type>"

         }

      }

   }

}

}

Best regards,

   Bjoern

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1d716665-b9a4-42b6-ad84-36764b69bd62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Binh Ly-2) #2

Should be the same. They both do the filter method.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/373b542b-90d4-4aee-ba03-54abad7ecec6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3