I am trying to retrieve records that match two queries.
First one is match_phrase
"match_phrase": {
"searchstring": {
"query": "' . $searchQ . '",
"slop": 10
}
}
Second one I am using multi match
"multi_match": {
"query": "' . $searchQ . '",
"fields" : ["_all"],
"type": "cross_fields",
}
how can I do this correctly. Please help