Reputation: 671
Just some generic questions about Filter Queries on solr (fq):
Does a fq query cache all the potential results, or only the ones the query returns?
e.g.: select?q=*:*&fq=bPublic:true&rows=10
=> with this query, if I have 60 millions of public documents, would it cache 10 or 60 millions of IDs?
does it cache different result for the 2 following queries? (may be replied by the first question...):
does the Solr cache the IDs from filter Query in the OS cache or in java heap?
Is the fq "executed" before or after the usual query (q)
e.g.: select?title:"something really specific"&fq=bPublic:true&rows=10
Would it first:
Thanks in advance.
kr, Bast
Upvotes: 0
Views: 57
Reputation: 671
I got some answers from the solr mailing list:
& 2. It stores every document in the core, with a bit (1 or 0) to store if it's matching the query.
http://yonik.com/advanced-filter-caching-in-solr/ ==> fq queries are executed before the main q queries.
Upvotes: 0