When i use "term" the query works but when i change it to "match" it does
not work but rather throws a exception. "No filter registered for [match]"
{
"query": {
"custom_filters_score": {
"query": {
"match_all": {}
},
"filters": [
{
"filter": {
"range": {
"tution": {
"from": 10000,
"to": 20000
}
}
},
"boost": "3"
},
{
"filter": {
"term": {
"programs": "computer"
}
},
"boost": "2"
},
{
"filter": {
"term": {
"coed": "Yes"
}
},
"boost": "1"
}
],
"score_mode": "first"
}
}
}
When i use "term" the query works but when i change it to "match" it does not work but rather throws a exception. "No filter registered for [match]"
{
"query": {
"custom_filters_score": {
"query": {
"match_all": {}
},
"filters": [
{
"filter": {
"range": {
"tution": {
"from": 10000,
"to": 20000
}
}
},
"boost": "3"
},
{
"filter": {
"term": {
"programs": "computer"
}
},
"boost": "2"
},
{
"filter": {
"term": {
"coed": "Yes"
}
},
"boost": "1"
}
],
"score_mode": "first"
}
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.