Hi ,
i created a new search index with below json config.
{
"mappings": {
"fields": {
"items": {
"dynamic": false,
"fields": {
"name": {
"type": "autocomplete"
}
},
"type": "embeddedDocuments"
}
}
}
}
But when i try to execute .
{
index: 'embedded',
autocomplete: {
query: 'dp',
path: 'name',
tokenOrder: 'sequential',
fuzzy: {
// maxEdits: 1,
// "maxExpansions": 100,
}
}
}
I got below error
PlanExecutor error during aggregation :: caused by :: Remote error from mongot :: caused by :: autocomplete index field definition not present at path materialNo