Thanks for your help.
It's really helpful for me.
thanks very much. :-)
-Jang.
--
DEV용식
http://devyongsik.tistory.com
Erick Erickson wrote:
> The number of documents
> is irrelevant here, what is relevant is the number of
> distinct terms in your "fieldName" field.
>
Depending on the size of your index, the number of docs will matter
though. You have to store the unique terms in a String[] array, but you
also s
Mostly, the difference is in the sorting. Your
example (1) scores by document relevance whereas
your example (2) sorts by whatever is in fieldName.
example (2), because it is sorting, will try to
cache all the distinct *terms* in your index for that field,
which is probably where your out of memo
AUTOMATIC REPLY
LUX is closed until 5th January 2009
-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
AUTOMATIC REPLY
LUX is closed until 5th January 2009
-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
Hi.. :)
I have a simple question..
I have two sample code.
1) TopDocCollector collector = new TopDocCollector(5 * hitsPerPage);
QueryParser parser = new QueryParser(fieldName, analyzer);
query = parser.parse("keyword");
searcher.search(query, collector);
ScoreDoc[] hits = collec