Re: Sort on TermEnum

2009-05-08 Thread Federica Falini Data Management S.p.A
more flexibility and also don't kill performance outright. On Fri, May 8, 2009 at 11:58, Federica Falini Data Management S.p.A 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 T

Re: Sort on TermEnum

2009-05-08 Thread Earwin Burrfoot
ica Falini Data Management S.p.A 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

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: Probelm sort on TermEnum

2009-04-08 Thread Federica Falini Data Management S.p.A
FieldNotTokenized".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 in Lu

RE: Probelm sort on TermEnum

2009-04-07 Thread Steven A Rowe
reader.terms(new Term("myFieldNotTokenized", "")); > >   while ("myFieldNotTokenized".equals(terms.term().field())) { > > > >     System.out.println( " " + terms.term()); > >     if (!terms.next()) break; > >   } > > > >

Re: Probelm sort on TermEnum

2009-04-07 Thread Michael McCandless
gt;> field is not-tokenized): >> TermEnum terms = reader.terms(new Term("myFieldNotTokenized", "")); >>   while ("myFieldNotTokenized".equals(terms.term().field())) { >> >>     System.out.println( "     " + terms.term()); >>   

Re: Probelm sort on TermEnum

2009-04-07 Thread Michael McCandless
erm().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 > caf

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