lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidworks.com>
Subject Re: About query result cache.
Date Mon, 17 Dec 2012 06:34:57 GMT
On Mon, Dec 17, 2012 at 12:58 AM, lukai <lukai1984@gmail.com> wrote:
> Hi, guys:
>   Does queryplugin implementation impacts caching? I have implemented a new
> query parser which just take the input query string and return my own query
> object. But the problem is, when i apply this logic to solr, it seems it
> only works for the first time. Then even i change query, it still returns
> the same result as the first time result. Is it cached? If so, the cache
> key is based on what?

The key is the query object.  Implement equals and hashcode so that it
won't match other other versions of your query.

-Yonik
http://lucidworks.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message