Re: Sorting on multi-valued field

2015-02-24 Thread Shyamsunder Mutcha
How about creating two fields for the multi-valued field. First, grab the higher and lower values of the multi-valued field by using natural sort order. Then use the first field to store the highest order value. Use second field to store lowest order value. Both these fields are single valued.

Re: Sorting on multi-valued field

2015-02-24 Thread Alexandre Rafalovitch
The usual strategy is to have an UpdateRequestProcessor chain that will copy the field and keep only one value from it, specifically for sort. There is a whole collection of URPs to help you choose which value to keep, as well as how to provide a default. You can see the full list at: http://www.s

Re: Sorting on multi-valued field

2015-02-24 Thread Mikhail Khludnev
fwiw, open solr jira https://issues.apache.org/jira/browse/SOLR-2522 pls vote however, everything seems done at lucene level https://issues.apache.org/jira/browse/LUCENE-5454 On Tue, Feb 24, 2015 at 6:11 PM, Nitin Solanki wrote: > Hi Peri, > You cannot do sort on multi-valued fie

Re: Sorting on multi-valued field

2015-02-24 Thread Nitin Solanki
Hi Peri, You cannot do sort on multi-valued field. It should be set to false. On Tue, Feb 24, 2015 at 8:07 PM, Peri Subrahmanya < peri.subrahma...@htcinc.com> wrote: > All, > > Is there a way sorting can work on a multi-valued field or does it always > have to be “false” for it to w

Sorting on multi-valued field

2015-02-24 Thread Peri Subrahmanya
All, Is there a way sorting can work on a multi-valued field or does it always have to be “false” for it to work. Thanks -Peri *** DISCLAIMER *** This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in de