Re: about TopFieldDocs

2009-01-05 Thread 장용석
Thanks for your help. It's really helpful for me. thanks very much. :-) -Jang. -- DEV용식 http://devyongsik.tistory.com

Re: about TopFieldDocs

2009-01-05 Thread Mark Miller
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

Re: about TopFieldDocs

2009-01-05 Thread Erick Erickson
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

Re: Re: about TopFieldDocs

2009-01-05 Thread tom
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

Re: about TopFieldDocs

2009-01-05 Thread tom
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

about TopFieldDocs

2009-01-05 Thread 장용석
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