Re: Get original DocValues from ICUCollationDocValuesField

2017-04-30 Thread Luís Filipe Nassif
Thanks Uwe! I've considered indexing it into 2 fields, but asked to know if there is a better way. Maybe I will convert the values to lower case and apply ASCIIFoldingFilter to eliminate the need of Collator and the overhead of indexing into 2 fields. Luis 2017-04-30 17:36 GMT-03:00 Uwe Schindle

Re: Get original DocValues from ICUCollationDocValuesField

2017-04-30 Thread Uwe Schindler
Hi, No. Collation keys are a one-way function. You need to index it into 2 different fields, once for sorting as collation key and once for facetting or display. Uwe Am 30. April 2017 22:29:23 MESZ schrieb "Luís Filipe Nassif" : >A related question: is it possible to do faceting on a >SortedD

Re: Get original DocValues from ICUCollationDocValuesField

2017-04-30 Thread Luís Filipe Nassif
A related question: is it possible to do faceting on a SortedDocValuesField using Collation rules? Or faceting is always case sensitive? Thanks in advance, Luis 2017-04-30 12:35 GMT-03:00 Luís Filipe Nassif : > Hi Lucene community! > > I can successful get original doc values from fields indexed

Get original DocValues from ICUCollationDocValuesField

2017-04-30 Thread Luís Filipe Nassif
Hi Lucene community! I can successful get original doc values from fields indexed with SortedDocValues with code like: BytesRef bref = atomicReader.getSortedDocValues(field).get(doc); String value = bref.utf8ToString(); But as I need to use locale sorting, I use ICUCollationDocValuesField for in