lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang, Lisheng" <Lisheng.Zh...@BroadVision.com>
Subject RE: Case insensitive sortable column
Date Wed, 12 Oct 2011 01:33:36 GMT
Hi,

Another solution would be to define locale when creating SortField object,
if using English locale the sorting should be case insensitive?

Best regards, Lisheng

-----Original Message-----
From: Senthil V S [mailto:vss123@gmail.com]
Sent: Tuesday, October 11, 2011 12:34 PM
To: java-user@lucene.apache.org
Subject: Re: Case insensitive sortable column


Yeah.. Thanks..

That should work.. :)


Senthil V S
Y!: siliconsenthil2003,GTalk:vss123
<http://pleasantrian.blogspot.com/>


On Wed, Oct 12, 2011 at 12:15 AM, Sendros, Jason <
Jason.Sendros@verizonwireless.com> wrote:

> If that's not an option, create another column with the same data
> lowercased and search on the new column while displaying the original
> column.
>
> Jason
>
> -----Original Message-----
> From: Greg Bowyer [mailto:gbowyer@shopzilla.com]
> Sent: Tuesday, October 11, 2011 10:43 PM
> To: java-user@lucene.apache.org
> Subject: Re: Case insensitive sortable column
>
> I might be missing something here but cant you just lowercase during
> indexing ?
>
> On 11/10/11 09:48, Senthil V S wrote:
> > Hi,
> >
> > I'm new to Lucene. I have records and I wanna sort them by fields.
> I've
> > created indexes for those fields with 'not_analyzed'.
> > The sort is case sensitive. In a sense,
> > *A...*
> > *X...*
> > *b...*
> > is the order, while what I would prefer is,
> > *A...*
> > *b...*
> > *X...*
> > *
> > *
> > I believe it's a trivial one to do but not sure how. Any idea?
> > *
> > *
> >
> >
> > Senthil V S
> > Y!: siliconsenthil2003,GTalk:vss123
> > <http://pleasantrian.blogspot.com/>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message