Actually, the code I had previously was:
TermEnum e = reader.terms( new Term( fieldName, "" ) );
Collection values = new LinkedList();
while ( fieldName.equals( e.term().field() ) ) {
String text = e.term().text();
if ( text.length() > 0 )
values.add( text
Uhm, a code snippet, perhaps?? Thanks.
- Paul
On Mar 19, 2009, at 10:26 AM, Erick Erickson wrote:
See TermEnum/TermDocs.
On Thu, Mar 19, 2009 at 12:41 PM, Paul J. Lucas
wrote:
The Lucene FAQ has a Q, "How do I retrieve all the values of a
particular
field that exists within an in
See TermEnum/TermDocs.
On Thu, Mar 19, 2009 at 12:41 PM, Paul J. Lucas wrote:
> The Lucene FAQ has a Q, "How do I retrieve all the values of a particular
> field that exists within an index, across all documents?" and gives some
> code. However, it looks like that code returns only unique v