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: Filter query method
Date Tue, 07 Nov 2006 04:54:27 GMT

:    Is there anyone built your own filter query before, in order to perform
: search within search results. Meaning after the first search, the result is
: cached and the second search searches the result that return from the first
: searched, and is not searching the whole index again.
:
:    Just wondering by using Hits, can it achieved the result above?

1) it's typically not neccessary to worry about the caching of the results
too much for the simple cases that Hits can be used in.

2) you have to decide what semantics you are interested in ... is it a
"search A within a result set B" where the score is only based on query A,
or is it a "search on A and B" where A and B both make up the score?

...in the first case, you can use the serch method that takes a Filter
and some caching is possible, in the second case BooleanQuery is what you
really want.


-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