Hello ,
i have array json file loaded a document in index , and i am trying to run a match query on that, results are fetching if the field parameter are wrong.
, , ,
' {
"name":"B",
"city":"B",
"phone":"N",
[{
"course":"Engineer"
}]
} '
, , ,
This is my document format that i have loaded into index.
here index name : jsonfile , type name is _doc , id = 1
i am writing a match query based on matching fields as like below
, , ,
GET http://localhost:9200/jsonfile/_search
' {
"query": {
"bool": {
"must":[
{"match":
{
"name": "B"
}},
{"match":{
"city":"B"
}},
{
"match": {
"phone": **"P"**
}
}
]}}} '
, , ,
but i am getting results if i am passing wrong parameter to matching fileds
Any suggestions please , help with the query
