lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Vincent-Royol <vincent.ro...@gmail.com>
Subject Re: sort problem
Date Tue, 18 Jan 2011 09:16:58 GMT
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 <erickerickson@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 <bdewar@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.akram@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.royol@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message