Hello,
I have a field named "candidate_name". Initially, I had a mapping for this field like this -
"candidate_name" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
Now, I changed its mapping because I wanted to use completion Suggestor for this field -
This is how I defined it -
{
"mappings": {
"doc": {
"properties": {
"candidate_name": {
"type": "completion",
"analyzer": "simple",
"search_analyzer": "simple"
}
}
}
}
}
After applying this mapping to this field, I am not able to make a search query like this -
client.search(
{
index : "candidates",
body: {
query: {
multi_match: {
query: "chitresh"
}
}
}
)
I was able to make this query before ad get the result.
So, how to define its mapping, so that I can use completion suggestor for this field as well as I can make a search query for this field.
I have already gone through ES docs. Couldn't get the solution there.