Stored should not matter. What do you see when you add &debug=query? My bet is one of two things: 1> you're not searching against the field you think 2> you didn't commit when you ran your first test...
Best, Erick On Thu, Jul 6, 2017 at 12:38 PM, Saurabh Sethi <saurabh.se...@sendgrid.com> wrote: > Typo in previous response. Following is correct: > > <field name="field1" type="boolean" /> > > > On Thu, Jul 6, 2017 at 12:37 PM, Saurabh Sethi <saurabh.se...@sendgrid.com> > wrote: > >> <field name="field1" type="bool" /> >> >> >> On Thu, Jul 6, 2017 at 12:16 PM, Susheel Kumar <susheel2...@gmail.com> >> wrote: >> >>> and how do you create the field? Share the the line where you are >>> creating >>> the above field1 >>> >>> <field name="field1".... >>> >>> On Thu, Jul 6, 2017 at 2:42 PM, Saurabh Sethi <saurabh.se...@sendgrid.com >>> > >>> wrote: >>> >>> > Do we need to store boolean field in order to query it? >>> > >>> > The query I am running is "field1:true" >>> > >>> > With the following field type, where "stored=false", query returns 0 >>> > result. >>> > >>> > <fieldType name="boolean" class="solr.BoolField" indexed="true" >>> > stored="false" docValues="false" omitNorms="true" /> >>> > >>> > >>> > But if I change stored to "true", same query works. >>> > >>> > Thanks, >>> > Saurabh >>> > >>> >> >> >> >> -- >> Saurabh Sethi >> Principal Engineer I | Engineering >> > > > > -- > Saurabh Sethi > Principal Engineer I | Engineering