Percolation works fine, as long as I don't 'filter' the percolators. Please see below for the scenario. What am I doing wrong?
percolator mapping:
{
"activities-20150107-162224": {
"mappings": {
".percolator": {
"_id": {
"index": "not_analyzed"
},
"properties": {
"doc_type": {
"type": "string"
},
"query": {
"type": "object",
"enabled": false
}
}
}
}
}
}
percolator query doc:
{
"_index": "activities-20150107-162224",
"_type": ".percolator",
"_id": "tagrule-1",
"_version": 2,
"found": true,
"_source": {
"query": {
"query_string": {
"fields": [
"name",
"description"
],
"query": "hockey"
}
},
"doc_type": "activity"
}
}
percolate request that works fine:
GET /activities/activity/_percolate?percolate_format=ids
{
"doc": {
"name": "hockey"
}
}
filtered percolate request that does NOT work.
GET /activities/activity/_percolate?percolate_format=ids
{
"doc": {
"name": "hockey"
},
"query": {
"filtered": {
"query": {"match_all": {}},
"filter": {
"term": {
"doc_type": "activity"
}
}
}
}
}
This also does not work:
GET /activities/activity/_percolate?percolate_format=ids
{
"doc": {
"name": "hockey"
},
"filter": {
"term": {
"doc_type": "activity"
}
}
}
I have done a /_refresh on the index. ES version is 1.4.2.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9746982d-cdac-474e-8b0d-40996bbb3c3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.