Re: list all terms in a field

2005-04-07 Thread Chris Hostetter
: Is there a simple way to list all terms in a field? : The only approach that I see is to use the IndexReader.terms() method : and then iterate over all the results and build my list by manually : filtering. This seems inefficient and there must be a better way that : my newbie eyes don'

Re: list all terms in a field

2005-04-07 Thread Chris Lamprecht
(this == o) return 0; TermFreq other = (TermFreq) o; return other.freq - this.freq; } } On Apr 7, 2005 9:00 PM, Mark Gunnels <[EMAIL PROTECTED]> wrote: > Is there a simple way to list all terms in a field? > The only approach that I see is to use the IndexReader.te

list all terms in a field

2005-04-07 Thread Mark Gunnels
Is there a simple way to list all terms in a field? The only approach that I see is to use the IndexReader.terms() method and then iterate over all the results and build my list by manually filtering. This seems inefficient and there must be a better way that my newbie eyes don'