Thanks Erick.

What about at query time?  If I index my Boolean and it has one of the
variations of "t", "T" or "1", what should my query be to get a hit on
"true"?  q=MyBoolField:<what> ?  What should the value of <what> be when I
want to check if the field has a "true" and when I need to check if it has
a "false"?

Steve

On Wed, Jun 3, 2015 at 6:41 PM, Erick Erickson <erickerick...@gmail.com>
wrote:

> 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 <swhite4...@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
>

Reply via email to