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
感謝您的鏈接。 –