You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by tushar kapoor <tu...@rediffmail.com> on 2009/04/02 06:33:02 UTC

Re: Unexpected sorting results when sorting with mutivalued filed



Shalin Shekhar Mangar wrote:
> 
> On Tue, Mar 31, 2009 at 2:18 PM, tushar kapoor <
> tushar_kapoor_47@rediffmail.com> wrote:
> 
>>
>> I have indexes with a multivalued field authorLastName. I query them with
>> sort=authorLastName asc and  get the results as  -
>>
>> Index#  authorLastName
>>  1           Antonakos
>>  2           Keller
>>  3           Antonakos
>>               Mansfield
>>
>> However  Index#3 has a value starting with A (Antonakos ) .. Should'nt
>> Index#3 preceed Index#2 in the results.
>>
> 
> The last value is used for sorting in multi-valued fields. What is the
> reason behind sorting on a multi-valued field?
> 
> -- 
> Regards,
> Shalin Shekhar Mangar.
> 
> 

Cant do much about it, that is the way our design is.  Is there any way we
can change this ?





-- 
View this message in context: http://www.nabble.com/Unexpected-sorting-results-when-sorting-with-mutivalued-filed-tp22800877p22840705.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Unexpected sorting results when sorting with mutivalued filed

Posted by Chris Hostetter <ho...@fucit.org>.
: > The last value is used for sorting in multi-valued fields. What is the
: > reason behind sorting on a multi-valued field?

strictly speaking the behavior is non-determinisitic.  in most cases 
attempting to sort on a multi-valued field will generate an error.

: Cant do much about it, that is the way our design is.  Is there any way we
: can change this ?

pick the value you want to sort on and index it a seperate field.



-Hoss