Re: How to hit filterCache?if filterQuery is a sub range query of another already cache range filterQuery

2018-08-24 Thread Mikhail Khludnev
There might be something like fq=filter(foo:[2 TO 3]) OR filter(foo:[3 TO
100])

On Fri, Aug 24, 2018 at 2:23 PM zhenyuan wei  wrote:

> Hi All,
> I am confuse about How to hit filterCache?
>
> If filterQuery is range [3 to 100] , but not cache in FilterCache,
> and  filterCache already exists  filterQuery range [2 to 100],
>
> My question is " Dose this filterQuery range [3 to 100]  will  fetch DocSet
> from FilterCache range[2 to 100]" ?
>


-- 
Sincerely yours
Mikhail Khludnev


Re: How to hit filterCache?if filterQuery is a sub range query of another already cache range filterQuery

2018-08-24 Thread Shawn Heisey

On 8/24/2018 5:23 AM, zhenyuan wei wrote:

I am confuse about How to hit filterCache?

If filterQuery is range [3 to 100] , but not cache in FilterCache,
and  filterCache already exists  filterQuery range [2 to 100],

My question is " Dose this filterQuery range [3 to 100]  will  fetch DocSet
from FilterCache range[2 to 100]" ?


Each entry in the filterCache uses the query as its key.  So for the 
first one, the key will be something like "field:[3 TO 100]" or whatever 
your fq parameter value was.  When the second one is executed, it will 
have a different key, so it will not be found in the cache.  Once it 
executes, it will be added to the cache as an additional entry.


Thanks,
Shawn



Re: How to hit filterCache?if filterQuery is a sub range query of another already cache range filterQuery

2018-08-24 Thread Emir Arnautović
Hi,
No it will not and it does not make sense to - it would still have to apply 
filter on top of cached results since they can include values with 2. You can 
consider a query as entry into cache.

Thanks,
Emir
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/



> On 24 Aug 2018, at 13:23, zhenyuan wei  wrote:
> 
> Hi All,
> I am confuse about How to hit filterCache?
> 
> If filterQuery is range [3 to 100] , but not cache in FilterCache,
> and  filterCache already exists  filterQuery range [2 to 100],
> 
> My question is " Dose this filterQuery range [3 to 100]  will  fetch DocSet
> from FilterCache range[2 to 100]" ?



How to hit filterCache?if filterQuery is a sub range query of another already cache range filterQuery

2018-08-24 Thread zhenyuan wei
Hi All,
I am confuse about How to hit filterCache?

If filterQuery is range [3 to 100] , but not cache in FilterCache,
and  filterCache already exists  filterQuery range [2 to 100],

My question is " Dose this filterQuery range [3 to 100]  will  fetch DocSet
from FilterCache range[2 to 100]" ?