Re: BoolField fieldType

2015-06-08 Thread Steven White
Thank you all for helping and updating the doc. As always, it is greatly appreciated. Steve On Thu, Jun 4, 2015 at 1:53 PM, Chris Hostetter wrote: > > : 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 hi

Re: BoolField fieldType

2015-06-04 Thread Chris Hostetter
: 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 should the value of be when I : want to check if the field has a "true" and when I need to check if it has : a "false

Re: BoolField fieldType

2015-06-04 Thread Chris Hostetter
: 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. correct and documented... https://cwiki.apache.org/confluence/display/solr/Field+Types+Included+with+Solr : sortMissingLast determines sort order

Re: BoolField fieldType

2015-06-04 Thread Erick Erickson
Have you tried it? Really, it should take you 2 minutes to add a doc and see. I'd guess it follows the same rules. Best, Erick On Thu, Jun 4, 2015 at 5:29 AM, Steven White wrote: > Thanks Erick. > > What about at query time? If I index my Boolean and it has one of the > variations of "t", "T"

Re: BoolField fieldType

2015-06-04 Thread Steven White
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 should the value of be when I want to check if the field has a "true" and when I need to check if it has a "f

Re: BoolField fieldType

2015-06-03 Thread Erick Erickson
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 tha

BoolField fieldType

2015-06-03 Thread Steven White
Hi everyone, This is a two part question: 1) I see the following: 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: That is what should "" be? Thanks S