【发布时间】:2019-07-20 03:36:24
【问题描述】:
我一直在尝试使用来自 Algolia 的此查询参数过滤初始搜索,但没有成功。 我在文档中读到的是,您必须添加查询参数和查询字符串,但到目前为止它可以完成这项工作。
这是我一直在使用的代码
var search = instantsearch({
appId: 'API ID',
apiKey: 'APY KEY SEARCH',
indexName: 'per_posts_product',
searchParameters: {
facets: ['taxonomies.product_cat'],
facetsRefinements: {'taxonomies.product_cat': 'Dual Daggers'}
},
routing: true
});
【问题讨论】:
标签: javascript algolia instantsearch.js