Dato questi dati:
[
{
"tags": [
"food"
]
},
{
"tags": [
"food features"
]
}
]
E indice di mappatura
{
"mappings": {
"properties": {
"tags": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
Come posso creare una query che restituisce tag corrispondenza [cibo] e [cibo caratteristiche] quando ho cercato [cibo] tag, ma quando faccio una ricerca per il food offre tag, solo [cibo caratteristiche] tag viene restituito? Grazie.