Hi
I am trying percolation
Below is what I have indexed.
{
"_index": "my_index",
"_type": ".percolator",
"_id": "AVhIEWHa89Gnz7pd0EQc",
"_version": 1,
"found": true,
"_source": {
"query": {
"bool": {
"should": [{
"match": {
"candidate": {
"query": "ABC",
"type": "boolean"
}
}
}]
}
},
"documentId": "6017:6066:d59defa4c6dc4552a2be5d9b3c66a47c",
"status": "Open"
}
}
Now I need to search over multiple documentId.
{"percolate" : {"index" : "spire_4", "type" : "candidate", "id" : "6017:6005:aba6e2059d4c4993b7c8f7221c3429ee" } }
{"highlight":{"fields":{"skill":{} }},"size":5, "query": {"bool": { "filter": { "terms": { "requisitionId": [ "6017:6066:d59defa4c6dc4552a2be5d9b3c66a47c" ] } } } } }
{"percolate" : {"index" : "spire_4", "type" : "candidate", "id" : "6017:6005:2f9b8d2694fb4a8eb19a14e666c47021" } }
{"highlight":{"fields":{"skill":{} }},"size":5, "query": {"bool": { "filter": { "terms": { "requisitionId": [ "6017:6066:d59defa4c6dc4552a2be5d9b3c66a47c" ] } } } } }
my query is like above. But this is throwing error.
"reason": {
"type": "parse_exception",
"reason": "failed to parse request",
"caused_by": {
"type": "no_class_def_found_error",
"reason": "Could not initialize class org.apache.lucene.queries.TermsQuery"
}
Please help.
Thanks
Nisar