On Tue, Sep 14, 2010 at 9:40 PM, Ryan McKinley <ryan...@gmail.com> wrote:
> Testing with r997128:
>
> I have a field defined as:
> <fieldType name="bytes"  class="solr.TrieLongField"
> sortMissingLast="true" precisionStep="0" omitNorms="true"
> positionIncrementGap="0"/>

SortMissingLast/SortMissingFirst is currently only supported with
fields that internally use a StringIndex (now DocTermsIndex) because
that's the only FieldCache representation that records what fields are
missing (via an ord of 0).

There's a note in the example schema.xml:

    <!-- The optional sortMissingLast and sortMissingFirst attributes are
         currently supported on types that are sorted internally as strings.
               This includes
"string","boolean","sint","slong","sfloat","sdouble","pdate"

That's actually the only reason the sint type fields are still around.
 If we could distinguish between 0 and missing, we could
deprecate/remove the s* fields and always use trie fields.

-Yonik
http://lucenerevolution.org  Lucene/Solr Conference, Boston Oct 7-8

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to