I attempted to create a search index using n-grams in the editor, but when I queried it, the search only worked for exact matches rather than supporting partial matches.
{
“mappings”: {
“dynamic”: false,
“fields”: {
“eventData”: [
{
“maxGrams”: 7,
“minGrams”: 3,
“tokenization”: “nGram”,
“type”: “autocomplete”
},
{
“type”: “string”
}
],
“queryResponse”: {
“maxGrams”: 7,
“minGrams”: 3,
“tokenization”: “nGram”,
“type”: “autocomplete”
}
}
}
}