lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re[3]: how to enhance speed of sorted search
Date Tue, 26 Sep 2006 18:49:20 GMT

: I am thinking should be this faster

The ConstantScoreQuery wrapped arround the QueryFilter might in fact be
faster then the raw query -- have your tried it to see?

you might be able to shave a little bit of speed off by accessing the bits
from the Filter directly and iterating over them yourself to check the
FieldCache ad build up your sorted list of the first "N" -- i think that
would save you one method call per match (the score method of
ConstantScoreQuery)

At some point you just have to wonder if it's fast enough?

how long does a typically sorted query take for you right now?

how many documents are in your index?

how many matches do you typically have?

-Hoss


---------------------------------------------------------------------
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