Percolator type : Why fields are not part of the percolator type settings?


(Gaetan Senelle) #1

I don't understand why we need to define fields of the percolated document on the same mapping of the percolate type.

If these fields are just used to "preprocess the document defined in the percolator query ",
Why the percolate type doesn't take the percolated document mapping as settings ? It will be much easier.


(Gaetan Senelle) #2

up :slight_smile:


(Martijn Van Groningen) #3

Hi @pulse14, when the percolate query is percolating a document it indexes it into a temporary in-memory index. In order to do that the percolate query needs to know how to index that document and for this reason it needs a mapping. Currently it uses the mapping the percolator field is defined in.

I agree it would be more clear to understand if the percolator field could accept field definitions / mapping. At least then the context is more clear. However that is currently difficult to do with how internally in ES things are structured.


(system) #4

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