lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: about sortMissingLast and sortMissingFirst
Date Mon, 18 Sep 2006 14:55:00 GMT

: My
: understand: if sortMissingLast is true do last in descending sort. for example:
:   field name : pname,  if sortMissingLast is true, pname will be sorted desc
: and we can't find result with pname, only other field information.

sortMissingLast is used to determine how you want documents that don't
have a value to appear -- if sortMissingLast=true then it doesn't matter
whether you sort "asc" or "desc", documents that don't have a value for
that field will allways come last.  if sortMissingLast="false" then the
default Lucene sort behavior is used in which "missing" values are sorted
the same as empty strings -- it is the "lowest" possible value, so they
come first in asc sorts.



-Hoss


Mime
View raw message