(FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Em
here are two filters (foo:bar, foo:baz) or 3, since there are three different combinations (foo:bar OR foo:baz, foo:bar, foo:baz)? Thank you! -- View this message in context: http://lucene.472066.n3.nabble.com/FQ-Filter-Query-Caching-Differences-with-OR-and-AND-tp2201004p2201004.html Sent from the

Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Jonathan Rochkind
Each 'fq' clause is it's own cache key. 1. fq=foo:bar OR foo:baz => one entry in filter cache 2. fq=foo:bar&fq=foo:baz => two entries in filter cache, will not use cached entry from #1 3. fq=foo:bar => One entry, will use cached entry from #2 4. fq=foo:bar => One entry, will use cach

Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Dennis Gearon
Is that good or bad? Dennis Gearon - Original Message From: Jonathan Rochkind To: "solr-user@lucene.apache.org" Cc: Em Sent: Wed, January 5, 2011 1:53:23 PM Subject: Re: (FQ) Filter Query Caching Differences with OR and AND? Each 'fq' clause is it's own

Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Jonathan Rochkind
2011 1:53:23 PM Subject: Re: (FQ) Filter Query Caching Differences with OR and AND? Each 'fq' clause is it's own cache key. 1. fq=foo:bar OR foo:baz => one entry in filter cache 2. fq=foo:bar&fq=foo:baz => two entries in filter cache, will not use cached entry from #

Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Dennis Gearon
And the sky is blue and the night is black - Original Message From: Jonathan Rochkind To: "solr-user@lucene.apache.org" Sent: Wed, January 5, 2011 2:18:20 PM Subject: Re: (FQ) Filter Query Caching Differences with OR and AND? Um, good or bad for what? It depends. Bu

Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Em
> two won't share any cache entries. > > > On 1/5/2011 3:17 PM, Em wrote: >> Hi, >> >> while reading through some information on the list and in the wiki, i >> found >> out that something is missing: >> >> When I specify a filter queries like this >> >> fq=foo:bar OR foo:baz >> or >> fq=foo:bar&fq=foo:baz >> or >> fq=foo:bar >> or >> fq=foo:baz >> >> How many filter query entries will be cached? >> Two, since there are two filters (foo:bar, foo:baz) or 3, since there are >> three different combinations (foo:bar OR foo:baz, foo:bar, foo:baz)? >> >> Thank you! > > -- View this message in context: http://lucene.472066.n3.nabble.com/FQ-Filter-Query-Caching-Differences-with-OR-and-AND-tp2201004p2204235.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Lance Norskog
entry from #2. >> >> So if you do queries in succession using each of those four fq's in >> order, you will wind up with 3 entries in the cache. >> >> Note that "fq=foo:bar OR foo:baz" is not semantically identical to >> "fq=foo&fq=bar"

Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-06 Thread Em
gt;> 4. fq=foo:bar >>>    => One entry, will use cached entry from #2. >>> >>> So if you do queries in succession using each of those four fq's in >>> order, you will wind up with 3 entries in the cache. >>> >>> Note that "fq=foo:bar

RE: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-06 Thread Jonathan Rochkind
..@yahoo.de] Sent: Thursday, January 06, 2011 2:36 AM To: solr-user@lucene.apache.org Subject: Re: (FQ) Filter Query Caching Differences with OR and AND? Thank you Jonathan. "fq=foo:bar&fq=foo:baz" seems to be the better alternative for "fq=foo:bar AND foo:baz" if &qu

RE: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-06 Thread Em
el like implementing this feature, hopefully I will get some time for it. -- View this message in context: http://lucene.472066.n3.nabble.com/FQ-Filter-Query-Caching-Differences-with-OR-and-AND-tp2201004p2206303.html Sent from the Solr - User mailing list archive at Nabble.com.