lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Jain <Eric.J...@isb-sib.ch>
Subject CachedQuery
Date Thu, 10 Jun 2004 13:17:35 GMT
I noticed that searching for terms that appear in a significant number
of documents tends to be relatively slow. For example

   foo AND (bar:yes OR xyz)

where every document has a field 'bar' with a value of either 'yes' or
'no'. Had a look at CachingWrapperFilter, unfortunately this class
doesn't seem to be any help here. Perhaps I need to create a CachedQuery
class that caches Weight objects for wrapped Query objects (and subclass
QueryParser to make use of this)? But would this work? Any ideas?


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


Mime
View raw message