lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukai <lukai1...@gmail.com>
Subject Re: About query result cache.
Date Mon, 17 Dec 2012 07:06:01 GMT
works, thanks Yonik.



On Sun, Dec 16, 2012 at 10:34 PM, Yonik Seeley <yonik@lucidworks.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message