Sorry for being short on details...
Mappings are:
{
"properties": {
"title": {
"type": "text",
"analyzer": "italian_full",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"language": {
"type": "keyword"
},
"provider": {
"type": "keyword"
},
"descriptionSections": {
"properties": {
"contents": {
"type": "text",
"analyzer": "italian_full"
},
"imageName": {
"enabled": False
},
"imageUrl": {
"enabled": False
},
"section": {
"enabled": False
}
}
},
"category": {
"type": "text",
"analyzer": "italian_full",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 32
}
}
},
"ingredients": {
"properties": {
"title": {
"enabled": False
},
"name": {
"type": "text",
"analyzer": "italian_full",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"unit": {
"enabled": False
}
}
},
"imageUrl": {
"enabled": False
},
"presentation": {
"type": "text",
"analyzer": "italian_full"
},
"info": {
"properties": {
"cookingTimeMinutes": {
"type": "short"
},
"cost": {
"type": "keyword"
},
"difficulty": {
"enabled": False
},
"dosesForPersons": {
"enabled": False
},
"note": {
"type": "text",
"analyzer": "italian_full"
},
"other": {
"type": "text",
"analyzer": "italian_full"
},
"preparationTimeMinutes": {
"type": "text"
}
}
},
"link": {
"type": "keyword"
},
"pageName": {
"type": "keyword"
}
}
}
A sample query looks like this one:
query = {
"multi_match": {
"query": "zucchero",
"fields": [
"title^3", "ingredients^2", "descriptionSections", "category",
]
}
}
arguments = {}
arguments["index"] = "recipes_it"
arguments["query"] = query
arguments["from_"] = 0
arguments["size"] = 20
retval = self._es.search(**arguments)
Search results are 0, when I search an ingredient name.
If I search for a term in title, I get the correct number of results.