Is it necessary an extra mapping for Percolate queries in ES5?


(JoseAlberto) #1

Following new ES5 doc:

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-percolate-query.html

says 2 mapping must be defined: doctype, queries

doctype mapping is there to set what fields can be used in percolate query, if I want to be able to use every field available for an index, Can I re-use the index mapping or I need to duplicate the mapping?


(Alexander Reelsen) #2

Hey,

so doctype is just used as an example here, you can replace it with your own type.

--Alex


(JoseAlberto) #3

great, Thanks!

I supposed it, but the documentation kind of suggest otherwise, even some examples have same confusion:


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.