lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven White <swhite4...@gmail.com>
Subject Re: BoolField fieldType
Date Thu, 04 Jun 2015 12:29:02 GMT
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 <erickerickson@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 <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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message