On 6/12/2018 2:56 AM, Marc Lammers wrote:
I want to sort my data by a multivalued field. I add this to my query
„*sort=field(foo,min)
asc“*. The configuration in the schema for this field is

<field name="foo" type="string" multiValued="true" indexed="true"
stored="true" docValues="true"/>

The documentation for the field function says that the field must contain numeric docvalues.  Your field has type="string" and although you did not indicate what the definition of string is in your schema, most likely it is the solr.StrField class.

https://lucene.apache.org/solr/guide/7_3/function-queries.html#FunctionQueries-field

Because this is not a numeric field, I'm guessing that it will not work with the field function.  All of the examples for that function are referencing a float field.

Thanks,
Shawn

Reply via email to