Re: Find groups where at least one item matches a query

2017-02-08 Thread Alexandre Rafalovitch
As per the documentation: "So all downstream components (faceting, highlighting, etc...) will work with the collapsed result set." So, no, you cannot facet on expanded group. Partially because it is not really fully expanded (there is a limit of items in each group). But also, are trying to

Re: Find groups where at least one item matches a query

2017-02-08 Thread Cristian Popovici
Alexander - thanks! It seems to work great. I still have a question - if I want to do a facet query that includes also the documents in the expanded area. Is this possible? If I apply a facet query like "facet=true=modality" it counts only the head documents. Thanks, Cristian. On Sun, Feb 5,

Re: Find groups where at least one item matches a query

2017-02-06 Thread Joel Bernstein
Assuming you have a unique id for each document the graph expression below will get you what you're looking for. The nodes function is short for gatherNodes described in the docs ( https://cwiki.apache.org/confluence/display/solr/Graph+Traversal). Starting in 6.4 you can call the function "nodes"

Re: Find groups where at least one item matches a query

2017-02-05 Thread Joel Bernstein
Take a look at the graph expressions: https://cwiki.apache.org/confluence/display/solr/Graph+Traversal Joel Bernstein http://joelsolr.blogspot.com/ On Sun, Feb 5, 2017 at 3:43 PM, Alexandre Rafalovitch wrote: > What about collapse and expand with overriden query. Something

Re: Find groups where at least one item matches a query

2017-02-05 Thread Alexandre Rafalovitch
What about collapse and expand with overriden query. Something like this (against 6.4 techproducts example): http://localhost:8983/solr/techproducts/select?expand.q=*:*=true={!collapse%20field=manu_id_s}=on=name:CORSAIR=json Note that the main document area contains the head document and the

Re: Find groups where at least one item matches a query

2017-02-05 Thread Cristian Popovici
Doesn't seem to work - I'm doing a query like this and I get only one result q=pathology:normal=true=groupId&*group.limit=2* On Sun, Feb 5, 2017 at 7:20 PM, Nick Vasilyev wrote: > Check out the group.limit argument. > > On Feb 5, 2017 12:10 PM, "Cristian Popovici"

Re: Find groups where at least one item matches a query

2017-02-05 Thread Nick Vasilyev
Check out the group.limit argument. On Feb 5, 2017 12:10 PM, "Cristian Popovici" wrote: > Erick, thanks for you answer. > > Sorry - I forgot to mention that I do not know the group id when I perform > the query. > Grouping - I think - does not help for me as it

Re: Find groups where at least one item matches a query

2017-02-05 Thread Cristian Popovici
Erick, thanks for you answer. Sorry - I forgot to mention that I do not know the group id when I perform the query. Grouping - I think - does not help for me as it filters out the documents that do not meet the filter criteria. Example: *q=pathology:Normal=true=groupId* will miss out the

Re: Find groups where at least one item matches a query

2017-02-05 Thread Erick Erickson
Isn't this just "=groupId:223"? Or do you mean you need multiple _groups_? In which case you can use grouping, see: https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results and/or https://cwiki.apache.org/confluence/display/solr/Result+Grouping but do note there are some