返回的_highlightResult
对象不包含ID
或objectID
。可以返回吗?
最佳答案
我收到了关于 Algolia forums 的答复
If you really need to search and highlight the object ID, we encourage you to duplicate its value to another attribute, and include that attribute in
searchableAttributes
andattributesToHighlight
.
关于javascript - Algolia 使用 autocomplete.js 突出显示 objectID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44203430/