简体   繁体   English

Algolia使用autocomplete.js突出显示objectID

[英]Algolia highlighting objectID using autocomplete.js

The _highlightResult object returned does not contain the ID or objectID . 返回的_highlightResult对象不包含IDobjectID 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 and attributesToHighlight . 如果您确实需要搜索并突出显示对象ID,建议您将其值复制到另一个属性,并将该属性包含在searchableAttributesattributesToHighlight

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM