Re: Sorting multi-valued fields

2018-09-14 Thread Shawn Heisey
On 9/14/2018 4:50 AM, richard.clarke wrote: What does it mean to sort documents by a multivalued field? If a field has multiple values, how can this be used to sort documents? e.g. if document 1 has a numeric field containing values 1,2,3,4,5 and document 2 has values in the same field of

Re: Sorting multi-valued fields

2018-09-14 Thread Mikhail Khludnev
http://people.apache.org/~mkhl/searchable-solr-guide-7-3/common-query-parameters.html#sort-parameter In the case of primitive fields, or SortableTextFields, that are multiValued="true" the representative value used for each doc when sorting depends on the sort direction: The minimum value in each

Sorting multi-valued fields

2018-09-14 Thread richard.clarke
Hi What does it mean to sort documents by a multivalued field? If a field has multiple values, how can this be used to sort documents? e.g. if document 1 has a numeric field containing values 1,2,3,4,5 and document 2 has values in the same field of 1,2,3 - which come first in the sort order and