How does one get a list of percolator documents, say with field query in an index?
Since ES 6.x, percolators are kept in same index as those documents they are querying, so I would have assumed I could get all percolator queries in an index like the below...
GET /index/_search
{
"query": {
"bool": {
"must": {
"exists": {
"field": "query"
}
}
}
}
}
But this does not return the percolator queries...the same query above works if I use a field that I have in some documents, like "user"...but I don't want to do a must_not, which works, provided I have a field that every document in the index has, but not the percolator... I just want a query to get all of the percolators in a given index, or shoot, I'd like a query that would just get me all my percolators and I can figure out what /index they are in...
Anyone have any clue how to do this in ES 6.x?
My mappings was created like the below...
PUT /index
{
"mappings": {
"type": {
"properties" : {
"query": {
"type" : "percolator"
}
}
}