var getallskills = document.getElementById('OpenJobs').value;
var preselectedCategories = getallskills.split(",");
var getallskills2 = document.getElementById('HiddenField1').value;
var preselectedCategories2 = getallskills2.split(",");
var geter = "Filled";
var pregeter = geter.split(",");
var search = instantsearch({
appId: 'XXXXXXXXX',
apiKey: 'XXXXXXXXXXXX',
indexName: 'Jobs',
searchParameters: {
"disjunctiveFacetsRefinements": {
"JobTitle": preselectedCategories
},
"facetsExcludes": {
"Emails.User": preselectedCategories2,
"Status": pregeter
}
}});
我正在尝试使用facetsExcludes进行disjunctiveFacetsRefinements,它似乎不起作用。有什么我做错了吗?也许是一个错误?
答案 0 :(得分:0)
我想出来了......我认为这个问题是disjunctiveFacetsRefinements。如果你看看我的代码:
"disjunctiveFacetsRefinements": {
//Facet Following Users
"JobTitle": preselectedCategories//, "ToUser.EmailAddress": emailaddress
},
所以它的作用只是看“JobTitle”方面。所以它限制了我的结果。有没有办法可以更改searchParameter以查看可搜索字段的LIKE类型查询?