Type in Percolator query


(ruflin-2) #1

I'm currently implementing percolator for Elastica. I looked at the
examples and everythings works as expected.

http://www.elasticsearch.org/guide/reference/api/percolate.html

But I'm somehow curious about the "type" param for example in the third
example (matching queries). The type is named "type1". As far as I
understand, it could be anything else like "abcde" and would return the
same result. Or if not, what is the type for?


(Ksaveras Ĺ akys) #2

Maybe You are right,

While reading documentation I realized that type1 is concrete document type
for percolate query (same as in searching method).

I haven't tested. If results will be different - I'll inform You.

BR
K


(ruflin-2) #3

Ok, let me know if you need some example code to reproduce it.


(system) #4