Sort on TermEnum

2009-05-08 Thread Federica Falini Data Management S.p.A
Hi,  in Lucene 2.4.1 (as such in Lucene 2.2) the term enumeration is sorted case-sensitive: first capital and then small; For example,  this sort on TermEnum is wrong for human consumption: Annales Cafè Zucche cafe this is the correct sort in this case : Annales cafe Cafè Zucche In Lucene

Re: Sort on TermEnum

2009-05-08 Thread Federica Falini Data Management S.p.A
,  this sort on TermEnum is wrong for human consumption: Annales Cafè Zucche cafe this is the correct sort in this case : Annales cafe Cafè Zucche In Lucene 2.2 i have made modification on Term.java, TermBuffer.java (see below)  in order to have  Term enumerations sorted case-insensitive: TermEnum

Re: Sort on TermEnum

2009-05-08 Thread Earwin Burrfoot
Data Management S.p.A ffal...@datamanagement.it wrote: Hi, in Lucene 2.4.1 (as such in Lucene 2.2) the term enumeration is sorted case-sensitive: first capital and then small; For example,  this sort on TermEnum is wrong for human consumption: Annales Cafè Zucche cafe this is the correct

Re: Probelm sort on TermEnum

2009-04-08 Thread Federica Falini Data Management S.p.A
uot;")); while ("myFieldNotTokenized".equals(terms.term().field())) { System.out.println( " " + terms.term()); if (!terms.next()) break; } For example, instead to obtain this sort on TermEnum: Annales Caf Zucche cafe i need to obtain this : Annales cafe Caf Zucche Now i

Probelm sort on TermEnum

2009-04-07 Thread Federica Falini Data Management S.p.A
quot;));   while ("myFieldNotTokenized".equals(terms.term().field())) {         System.out.println( " " + terms.term());     if (!terms.next()) break;   } For example, instead to obtain this sort on TermEnum: Annales Cafè Zucche cafe i need to obtain this : Annales ca

Re: Probelm sort on TermEnum

2009-04-07 Thread Michael McCandless
( + terms.term());     if (!terms.next()) break;   } For example, instead to obtain this sort on TermEnum: Annales Cafè Zucche cafe i need to obtain this : Annales cafe Cafè Zucche Now in Lucene 2.4 i find it difficult because the package index is changed a lot; can i have

Re: Probelm sort on TermEnum

2009-04-07 Thread Michael McCandless
is not-tokenized): TermEnum terms = reader.terms(new Term(myFieldNotTokenized, ));   while (myFieldNotTokenized.equals(terms.term().field())) {     System.out.println( + terms.term());     if (!terms.next()) break;   } For example, instead to obtain this sort on TermEnum: Annales

RE: Probelm sort on TermEnum

2009-04-07 Thread Steven A Rowe
, ));   while (myFieldNotTokenized.equals(terms.term().field())) {     System.out.println( + terms.term());     if (!terms.next()) break;   } For example, instead to obtain this sort on TermEnum: Annales Cafè Zucche cafe i need to obtain this : Annales cafe