I have the following mapping within my elastic Index:
"equipment": {
"type": "nested",
"properties": {
"equipment_category": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"equipment_name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
}
}
I have now the following problem:
Using the following query with the SAME "equipment_name" like "Climatic" keyword will return
all results containing the keyword "Climatic".
But using different keywords, like "Climatic" and "Inverter", will show no results at all:
GET _search
{
"nested":{
"path":"equipment",
"query":{
"bool":{
"must":[
{
"match":{
"equipment.equipment_name":"Climatic"
}
},
{
"match":{
"equipment.equipment_name":"Inverter"
}
}
]
}
}
}
}
What am I doing wrong?