You could also just use TermEnum, something like
TermEnum termEnum = this.reader.getIndexReader().terms(new
Term(field, ""));
Term term = termEnum.term();
while ((term != null) && term.field().equals(field)) {
System.out.println(term.text());
termEnum.
parser = new QueryParser();
parser.setAllowLeadingWildcard(true);
-Original Message-
From: Martin Spamer [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 21, 2007 7:06 AM
To: java-user@lucene.apache.org
Subject: All keys for a field
I need to return all of the keys for a
I need to return all of the keys for a certain field, essentially
"fieldName:*".This causes a ParseException / lexical error
Encountered: "*" (42), after : ""
I understand why this fails, WildCard prevent this to keep the results
manageble. In my case the number of results will always be man