Sorry, my mistake. It works now. Thanks a lot!
--
View this message in context:
http://lucene.472066.n3.nabble.com/GROUP-BY-query-tp2177408p2179230.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To
Tried it. Brings nothing. I tried even simpler version:
TermEnum terms = ir.terms();
while (terms.next())
{
System.out.println(terms.term().text());
}
It also brings no terms.
--
View
Something like this works pretty well
public static Map getFullTerms(IndexReader ir, String
fieldName, IndexSearcher is) throws IOException{
Map termMap = new LinkedHashMap();
TermEnum terms = ir.terms(new Term(fieldName, ""));
while (fieldName.equals(terms.term().field()))