【问题标题】:Algolia matching exact attributeAlgolia 匹配精确属性
【发布时间】:2015-12-23 13:38:19
【问题描述】:

当我尝试使用时

 restrictSearchableAttributes

使用 Javascript 客户端

我明白了

Invalid setting for restrictSearchableAttributes, attribute "field" is not in attributesToIndex

但是我正在使用 Laravel 包进行保存,并且我已经在那里设置了 attributesToIndex 字段?

【问题讨论】:

    标签: javascript search full-text-search algolia


    【解决方案1】:

    restrictSearchableAttributes 只能用于将可搜索属性限制为索引设置描述的子集。

    因此,您需要确保fieldattributesToIndex 列表中(在您的索引设置中),然后才能限制对该属性的搜索。

    【讨论】:

    • 我忘记在后端调用 setSettings()。非常感谢伙计。它现在正在工作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-14
    • 1970-01-01
    • 2022-07-01
    • 2020-03-06
    • 2017-01-09
    • 2015-08-02
    • 1970-01-01
    相关资源
    最近更新 更多