That should work, but do take a look at solr/admin, the schema browser (or use Luke) to verify that what you get is what you expect.
Oh, and please don't name it "string", it'll cause you endless confusion <G>... Best Erick On Tue, Jan 18, 2011 at 4:16 AM, Philippe Vincent-Royol < vincent.ro...@gmail.com> wrote: > Thanks for answers, > > So could i do something like that : > > <fieldType name="string" class="solr.TextField" sortMissingLast="true" > omitNorms="true"> > <analyzer> > <tokenizer class="solr.KeywordTokenizerFactory"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="ISOLatin1AccentFilterFactory"/> > </analyzer> > </fieldType> > > ? > thanks :) > > Phil > > > 2011/1/17 Erick Erickson <erickerick...@gmail.com> > > > Note two things: > > 1> the lowercasefilter is NOT applied to the STORED data. So the > > display will still have the original case although the sorting > > should be what you want. > > 2> you should NOT be sorting on a tokenized field. Use something > > like KeywordTokenizer followed by the lowercase filter. String > > types don't go through filters as I remember. > > > > Best > > Erick > > > > On Mon, Jan 17, 2011 at 7:57 AM, Brad Dewar <bde...@stfx.ca> wrote: > > > > > Haha, Yes, you're not wrong. > > > > > > The field you are sorting on should be a fieldtype that has the > lowercase > > > filter applied. You'll probably have to re-index your data, unless you > > > happen to already have such a field (via copyField, perhaps). > > > > > > Brad > > > > > > > > > > > > > > > -----Original Message----- > > > From: Salman Akram [mailto:salman.ak...@northbaysolutions.net] > > > Sent: January-17-11 5:47 AM > > > To: solr-user@lucene.apache.org > > > Subject: Re: sort problem > > > > > > Yes. > > > > > > On Mon, Jan 17, 2011 at 2:44 PM, Philippe VINCENT-ROYOL < > > > vincent.ro...@gmail.com> wrote: > > > > > > > Le 17/01/11 10:32, Grijesh a écrit : > > > > > > > > Use Lowercase filter to lowering your data at both index time and > > search > > > >> time > > > >> it will make case insensitive > > > >> > > > >> ----- > > > >> Thanx: > > > >> Grijesh > > > >> > > > > Thanks, > > > > so tell me if i m wrong... i need to modify my schema.xml to add > > > lowercase > > > > filter and reindex my content? > > > > > > > > > > > > > > > > > > > > > -- > > > Regards, > > > > > > Salman Akram > > > Senior Software Engineer - Tech Lead > > > 80-A, Abu Bakar Block, Garden Town, Pakistan > > > Cell: +92-321-4391210 > > > > > > > > > -- > Philippe VINCENT-ROYOL >