3
我有一个记录 'ABC756'Algolia前缀匹配
我如何让它在typeahead.js
756
它只有当我输入匹配的查询匹配
ABC
我设置
{"params":"query:756
hitsPerPage:15
restrictSearchableAttributes: attr
queryType:prefixAll"}
我有一个记录 'ABC756'Algolia前缀匹配
我如何让它在typeahead.js
756
它只有当我输入匹配的查询匹配
ABC
我设置
{"params":"query:756
hitsPerPage:15
restrictSearchableAttributes: attr
queryType:prefixAll"}
像大多数搜索引擎一样,Algolia本身不会支持子字符串&后缀匹配。你可以做的是预处理你的对象来生成所需的所有子字符串(或足够的)。这里解释:https://www.algolia.com/doc/faq/toubleshooting/how-can-i-make-queries-within-the-middle-of-a-word
感谢您的链接。 –