Javascript 精确属性匹配算法
当我尝试使用Javascript 精确属性匹配算法,javascript,search,full-text-search,algolia,Javascript,Search,Full Text Search,Algolia,当我尝试使用 restrictSearchableAttributes 使用Javascript客户端 我明白了 Invalid setting for restrictSearchableAttributes, attribute "field" is not in attributesToIndex 但是我正在使用Laravel软件包进行保存,并且我已经在那里设置了attributesToIndex的字段。限制可搜索属性只能用于将可搜索属性限制为索引设置描述的子集 因此,您需要确保字段
restrictSearchableAttributes
使用Javascript客户端
我明白了
Invalid setting for restrictSearchableAttributes, attribute "field" is not in attributesToIndex
但是我正在使用Laravel软件包进行保存,并且我已经在那里设置了attributesToIndex的字段。限制可搜索属性只能用于将可搜索属性限制为索引设置描述的子集 因此,您需要确保
字段
位于属性索引
列表中(在索引设置中),然后才能限制对该属性的搜索。我忘了在后端调用setSettings()。谢谢你,伙计。它正在工作。