lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karsten F." <karsten-luc...@fiz-technik.de>
Subject Re: Index types
Date Mon, 01 Sep 2008 08:29:19 GMT

Hi John,

I am not sure about the way Solr implements range query.
But it looks like, that Solr is using 
org.apache.lucene.search.ConstantScoreRangeQuery
which itself is using
org.apache.lucene.search.RangeFilter

So Solr do not rewrite the query to a large Boolean SHOULD, but it is
reading all terms for the "range"-Field.
This could be slow. 
If the RangeFilter is used many time a CachingWrapperFilter would speed up
the search.
You also could (try to) read the terms from memory instead of hard disk.
Because a timestamp is only a long = 64bit, a appropriate solution would
also to store the timestamps in main memory for a fast RangeFilter
implementation.

Best regards
   Karsten


John Patterson wrote:
> 
> 
> Does Solr's range impementation use the large Boolean SHOULD queries?
> 

-- 
View this message in context: http://www.nabble.com/Index-types-tp19177298p19250290.html
Sent from the Lucene - Java Users mailing list archive at Nabble.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