Hi,
i'm working with elasticsearch since some weeks now and I'm on the final step for my company project, but I have have some trouble to understand a trouble with a simple query.
in my index I have a nested field call "simulateur" which on conatins a "prettyName" and a "reference" field.
to filter my result I use this nested query for example:
{
"nested": {
"path": "simulateur",
"query": {
"query_string": {
"query": "BAT-EN-106",
"analyzer": "keyword",
"fields": [
"simulateur.reference"
]
}
}
}
}
this one return me 0 result but I have an entry that must match the request:
{
"took" : 32,
"timed_out" : false,
"_shards" : {
"total" : 4,
"successful" : 4,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : null,
"hits" : [
{
"_index" : "app_op_prod_2020-01-30-174513",
"_type" : "offre_projet",
"_id" : "56482",
"_score" : null,
"_source" : {
...
"simulateur" : {
"prettyName" : "Isolation des combles ou de toitures (Outremer TERTIAIRE)",
"reference" : "BAT-EN-106"
},
...
},
"sort" : [
1573663408000
]
}
]
}
}
I don't understand why I have no result when I use the nested query.
if you need more information to be able to help me just ask.
I use elasticsearch 6.8
thanks in advance for those who will try to help me.