When searching with autocomplete, for a query string of “stanf”, it would highlight word starting with “stanf”, which is expected. However, it would also highlight words like “publications” or “public”.
Thanks for confirming William. Interested to see the test data in the repro / output you’re getting so will wait for those. I did see some hits when the words were right next to the autocomplete search term but I believe this may be expected as per the autocomplete / highlight example documentation:
Atlas Search matches a highlight hit more coarsely to your query terms when a highlighted path is referenced only in the autocomplete operators of the highlighted query.