I have stored the data in the form of names and the domain. I am trying to use the fuzzy search for searching the possible name combination related to a particular domain. But I am getting many errors even after trying hard to figure out, how I can achieve what I am looking for.
Here is what I tried:
GET /names/_search?pretty
{
"query": {
"fuzzy" : { "name" : "aellebracht"
},
"match": {
"domain" : "box.com"
} } }
The error is what I received like this:
> {
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "[fuzzy] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
"line": 10,
"col": 1
}
],
"type": "parsing_exception",
"reason": "[fuzzy] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
"line": 10,
"col": 1
},
"status": 400
}
Kindly, help me.