Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Completed
Categories Atlas Search
Created by Guest
Created on Feb 23, 2021

Support highlighting with autocomplete operator

Currently, highlighting is supported only with search, term, compound, and span operators, and this is documented in the highlighting documentation. Therefore, if highlighting is used with the autocomplete operator, then it results in an error like this: "Highlights can not be generated. Path: "####" is not stored statically or dynamically indexed." This is a feature request to add support for highlighting with the autocomplete operator.
  • ADMIN RESPONSE
    Oct 18, 2025
    See examples here ( https://www.mongodb.com/docs/atlas/atlas-search/highlighting/#autocomplete-example )
  • Guest
    May 18, 2021
    Sample query: { "compound": { "should": [{ "autocomplete": { "query": "fight", "path": "plot", "score": { "boost": { "value": 9 } } }, }, { "autocomplete": { "query": "fight", "path": "fullplot", "score": { "boost": { "value": 5 } } } }] }, 'highlight': { "path": 'plot' } }