[ https://issues.apache.org/jira/browse/SOLR-2522 ]


    Chris Emerson deleted comment on SOLR-2522:
    -------------------------------------

was (Author: chrisemerson):
This would be incredibly helpful! Voting up.

As a side note, I actually tried for a while to do this as it wasn't clear to 
me from the documentation on min() that it couldn't be done. As it stands I'm 
having to do sorting, and therefore pagination, on the client side which is a 
real drag, and necessitates bringing back the entire result set every time a 
new page is required.

> add syntax for selecting the min or max of a multivalued field in value 
> source functions
> ----------------------------------------------------------------------------------------
>
>                 Key: SOLR-2522
>                 URL: https://issues.apache.org/jira/browse/SOLR-2522
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Bill Bell
>            Assignee: Chris M. Hostetter
>            Priority: Major
>             Fix For: 5.3, 6.0
>
>         Attachments: SOLR-2522.patch, SOLR-2522.patch, SOLR-2522.patch
>
>
> Initial request...
> bq. Switch max() and min() functions to work on multiValued fields so we can 
> do sort=min(fieldname) asc and the sort would work on multiValued fields...
> ...this specific syntax has been spun off into SOLR-7853, but the underlying 
> functionality s being implemented here using a new optional second argument 
> to the {{field()}} function: {{field(multivalued_field_name,min)}} and 
> {{field(multivalued_field_name,max)}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to