You can also use a "Field Mutating Update Processor" to do a "smart" copy of a multi-valued field to a sortable single-valued field.

See:
http://wiki.apache.org/solr/UpdateRequestProcessor#Field_Mutating_Update_Processors

Such as using the maximum value via MaxFieldValueUpdateProcessorFactory.

See:
http://lucene.apache.org/solr/api-4_0_0-BETA/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.html

Which value of a multi-valued field do you wish to sort by?

-- Jack Krupansky

-----Original Message----- From: Uwe Reh
Sent: Thursday, August 30, 2012 1:57 AM
To: solr-user@lucene.apache.org
Subject: Sorting on mutivalued fields still impossible?

Hi,
just to be sure.

There is still no way to sort by multivalued fields?
"...&sort=max(datefield) desc&...."

There is no smarter option, than creating additional singelevalued
fields just for sorting?
"eg. datafield_max and datefield_min"

Uwe

Reply via email to