How to implement multiselectable facet checkboxes with amazon cloudsearch?

自作多情 提交于 2019-12-23 01:46:33

问题


I am using amazon cloud search in my website.My website is an e learning portal where i have content of types videos,questions,courses etc.Each type of content having different levels like 1st grade,2nd grade,3rd grade etc of different curriculum like cbse,state board etc and of different educators like xyz,abc,pqr etc.I am filtering my content based on facet and also filtering facet based on facet selection.My filter is working like amazon cloudsearch console.In console we can not do multiple selection.My problem is that when i select one faceted checkbox then page loads and hides other filter options.I want to keep open all facets to perform multiple checkbox filter.Please help how to do this.


回答1:


You need to 'OR' the facet selections together. For example:

q=algebra&fq=(and (or grade:1 grade:2) (or educator:abc educator:xyz))&facet.grade={}&facet.educator={}&facet.curriculum={}

See http://docs.aws.amazon.com/cloudsearch/latest/developerguide/faceting.html



来源:https://stackoverflow.com/questions/25279012/how-to-implement-multiselectable-facet-checkboxes-with-amazon-cloudsearch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!