lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: BoolField fieldType
Date Wed, 03 Jun 2015 22:41:47 GMT
I took a quick look at the code and it _looks_ like any string
starting with "t", "T" or "1" is evaluated as true and everything else
as false.

sortMissingLast determines sort order if you're sorting on this field
and the document doesn't have a value. Should the be sorted after or
before docs that have a value for the field?

Hmm, could use some better docs....

Erick

On Wed, Jun 3, 2015 at 2:38 PM, Steven White <swhite4141@gmail.com> wrote:
> Hi everyone,
>
> This is a two part question:
>
> 1) I see the following: <fieldType name="boolean" class="solr.BoolField"
> sortMissingLast="true"/>
>
> a) what does sortMissingLast do?
> b) what kind of data is considered Boolean?  "TRUE", "True", "true", "1",
> "yes,", "Yes, "FALSE", etc.
>
> 2) When searching, what do I search on: q=MyBoolField:<what>  That is what
> should "<what>" be?
>
> Thanks
>
> Steve

Mime
View raw message