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

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?

Hey,

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

--Alex

great, Thanks!

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

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