Re: "GROUP BY" query

2011-01-02 Thread Benzion G
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

Re: "GROUP BY" query

2011-01-01 Thread Benzion G
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

Re: "GROUP BY" query

2011-01-01 Thread Joe Scanlon
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()))