I am trying to implement a selection of multiple facets of the same category, so when the user selects option A1 and option A2 of category A and option B1 of category B - the results he should get are for (A1 OR A2) AND (B1).
I am working with solr and blacklight (v5.3.0).
I tried to use blacklight_advanced_search (v5.1.2) gem and changed the view for the advanced. I succeed to implement the view for that, but still the results that solr returns are A1 AND A2 AND B1.
How can I make solr use OR between the facets of the same category instead of AND?
thanks
Solr 5.4.0; Ruby:2.2.4; Rails:4.2.6 here category A=color and B=productBrand check how your filter query fq For me, initial
But after refering Blacklight examples from https://github.com/sul-dlss/revs their filter query also looks similar
but its not working for me , and blacklight_advanced_search --version problem
So, i changed the request.rb file -- change action append_filter_query according to the requirements Also edit catalog.rb
After editing the files i got this fq which is working as i want it to be (similar to ur requirement) selects Blue or Black and Apple
Might not be the good way to edit request.rb but couldn't able to find out the alternative way
see request.rb in \ruby\gems\2.2.0\gems\blacklight-6.0.2\lib\blacklight\solr
ref:http://yonik.com/multi-select-faceting/
Example CODE: