Sort by 2 fields or concatenated data

2010-07-23 Thread Martyn Braithwaite
I am having trouble with sorting results correctly. I am using Lucene.Net 2.9.2 I have a field that contains LastName|FirstName data and is un-tokenized. This field can contain diacritic characters. I have tried the following. 1. Using the SortField(name, locale, reversed) class

RE: Sort by 2 fields or concatenated data

2010-07-23 Thread Digy
Is it possible to show the case with a small code fragment? DIGY -Original Message- From: Martyn Braithwaite [mailto:mbraithwa...@openroad.ca] Sent: Friday, July 23, 2010 10:46 PM To: lucene-net-dev@lucene.apache.org Subject: Sort by 2 fields or concatenated data I am having trouble wit

RE: Sort by 2 fields or concatenated data

2010-07-23 Thread Martyn Braithwaite
This is not a complete code sample but might give you a clue to what I am doing. For the simple scenario, the data is stored in the index as LastName|FirstName, it is an un-tokenized field I add one SortField like: sortByFields.Add(new SortField("KeywordSortLastName ", CultureInfo.CurrentUICultu