javascript - Algolia 使用 autocomplete.js 突出显示 objectID

标签 javascript algolia

返回的_highlightResult对象不包含IDobjectID。可以返回吗?

最佳答案

我收到了关于 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 and attributesToHighlight.

关于javascript - Algolia 使用 autocomplete.js 突出显示 objectID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44203430/

相关文章:

javascript - 如何在 Cordova 上设置请求 header 的特定来源?

algolia - Algolia免费套餐运行次数

javascript - 在 Laravel 5.2 上的 post 请求中传递 Algolia id 属性而不是 Name Atributre

javascript - 如何使用 Vue InstantSearch 设置初始搜索的属性?

ruby-on-rails - Algolia 搜索 - 无法在本地重建索引

firebase - Algolia Search Firebase Extension 安装后不跟踪 firestore 数据库集合

javascript - 函数范围内与函数外声明函数的性能

javascript - 更改存储的 div ID 的样式

javascript - 省略号 chop 长文本

javascript - animationend 在递归函数中不起作用