Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a widget for multiselect facets with configurable operand #40

Open
olanowak opened this issue May 21, 2013 · 0 comments
Open

Add a widget for multiselect facets with configurable operand #40

olanowak opened this issue May 21, 2013 · 0 comments
Labels

Comments

@olanowak
Copy link

Do you plan to add support for multi-select facets?
Here is a little example of what I would like to accomplish:

title:
[x] a (1111)

  • b (222)
  • c (333)
    [x] d (4)

author:
[x] a (123123)
[x] b (123)

  • c

After checking facets (marked as [x]) I would like the query to look like this:
(title:a OR title:d) AND (author:a OR author:b)

I would like not checked facets to not disappear and that all of them have appropriate counts.
I tried to use James McKinney tips from this question https://groups.google.com/forum/#!msg/ajax-solr/F8f6f3BtlUE/i3kdQYg_wzEJ but the constructed query looks like
/solr/select?rows=25&facet=true&facet.field={!ex=title}title&facet.field={!ex=author}author&fq={!tag=title}title:a&fq={!tag=title}title:d&fq={!tag=author}author:a&fq={!tag=author}author:b
so the operator is AND and I don't know how to change it to OR. I'm stuck.

It would be great if there was multi-select widget with configurable operand so users wouldn't have to change something withing Your code.

@jpmckinney jpmckinney changed the title Support for multiselect facets with configurable operand Add a widget for multiselect facets with configurable operand Jul 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant