Note that there are some explanatory texts on larger screens.

plurals
  1. POAny way to merge two queries in solr?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COI'm pretty sure this is not possible. Each filter query (fq) is calculated independently and results in a cached docset (unordered set of docids). Fq's are useful (read fast) because when specifying a couple of them the docsets get interesected which quickly truncates the searchspace. In other words: specifying multiple filter queries logically results in AND'ing them
      singulars
    2. COIt's a shame that Solr Fieldcollapsing http://wiki.apache.org/solr/FieldCollapsing doesn't support appending fq's AFTER you specified the field to group on (in your case 'type') that would have pretty much solved it. Still I hope that link might prove useful, as it's a good way to represent N top-documents per type. Although I realize that's not 100% what you're asking here..
      singulars
    3. COI was pretty sure too this is not possible, but I was hoping something I missed :) It would be a really cool thing to set groups of fq in a query, something like `fq={group:A}...&fq={group:A}...&fq={group:B}`, so solr will play the query, then filter with something like "all fq from group A OR all fq from group B" instead of its simple "all fq". Well, I guess I have to use the non-present-field condition solution I describe in my comment in @Paige Cook answer. Thanks anyway for the answer!
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload