On Wed, Mar 16, 2011 at 5:46 PM, Chris Hostetter
<hossman_luc...@fucit.org> wrote:
>
> : However, many of our multiValued fields are single valued for the majority
> : of documents in our index so we may not have noticed the incorrect sorting
> : behaviors.
>
> that would make sense ... if you use a multiValued field as if it were
> single valued, you would never enocunter a problem.  if you had *some*
> multivalued fields your results would be sorted extremely arbitrarily for
> those docs that did have multiple values, unless you had more distinct
> values then you had documents -- at which point you would get a hard crash
> at query time.

AFAIK, not any more.  Since that behavior was very unreliable, it has
been removed and you can reliably sort by any multi-valued field in
lucene (with the sort order being defined by the largest value if
there are multiple).

-Yonik
http://lucidimagination.com

Reply via email to