lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: Sorting on multiValued fields via function query
Date Thu, 17 Mar 2011 19:19:56 GMT
On Thu, Mar 17, 2011 at 2:12 PM, Chris Hostetter
<hossman_lucene@fucit.org> wrote:
> As the code stands now: we fail fast and let the person building hte index
> make a decision.

Indexing two fields when one could work is unfortunate though.
I think what we should support (eventually) is a max() function will also
work on a multi-valued field and select the maximum value (i.e. it will
simply bypass the check for multi-valued fields).

Then one can utilize sort-by-function to do
sort=max(author) asc

-Yonik
http://lucidimagination.com

Mime
View raw message