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: Sorting based on a selling rate
Date Wed, 30 Aug 2006 18:42:53 GMT

: I don't know what is the best way:

that depends on your needs ... if Selling rate changes very infrequently,
or if you are dealing with teh sell rate for lots of books per
query then i'd put it in your index ... if it's constantly in flux and you
only care about the sell rate of one or two books for each query, doing it
at query time is fine.

the definitions of "infrequently", "lots", and "constantly" all being
specific to the scope of your problem, and not something i can give
general advice on.

: or doing something like you said: "adding an optional clauses to your
: query for each of your N productIds"... but I don't really know how to do
: this...
:
: Any sample code exemple ?

I suggest you start by looking at the javadocs for BooleanQuery.



-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