Hi All,
Please excuse if it is already asked.
I am facing a weird situation of search not returning any hits, even on
escaping the special characters during search. The search field is
not_analyzed.
This is how data is indexed in the cluster.
{
"took":516,
"timed_out":false,
"_shards":{
"total":1,
"successful":1,
"failed":0
},
"hits":{
"total":2,
"max_score":1.0,
"hits":[
{
"_index":"moreovercontact",
"_type":"moreovercontact",
"_id":"1322",
"_score":1.0,
"_source":{
"contactid":"1322",
"contactname":"Wanda "Blueberry Freak" C.",
"email":"",
"sourceid":"4715"
}
}
]
}
}
The search request builder I used to pick data from the index is:
{
"from":0,
"size":10,
"query":{
"bool":{
"should":{
"bool":{
"must":[
{
"query_string":{
"query":"Wanda "Blueberry Freak" C.",
"fields":[
"contactname.sort"
],
"use_dis_max":true
}
},
{
"query_string":{
"query":"4715",
"fields":[
"sourceid"
],
"use_dis_max":true
}
}
]
}
}
}
},
"explain":true,
"fields":[
"contactid",
"contactname"
]
}
Hope I have escaped the special character in the query string in right
way. Let me know if I need to provide any more information regarding this
Could anybody help me on this problem?
Thank You!
Manoj