[英]Algolia highlighting objectID using autocomplete.js
The _highlightResult
object returned does not contain the ID
or objectID
. 返回的_highlightResult
对象不包含ID
或objectID
。 Is it possible to get it returned? 是否有可能将其退回?
I received an answer on the Algolia forums 我在Algolia论坛上收到了答复
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
. 如果您确实需要搜索并突出显示对象ID,建议您将其值复制到另一个属性,并将该属性包含在searchableAttributes
和attributesToHighlight
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.