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: Boolean Field
Date Thu, 06 Jul 2017 20:27:58 GMT
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.sethi@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.sethi@sendgrid.com>
> wrote:
>
>> <field name="field1" type="bool" />
>>
>>
>> On Thu, Jul 6, 2017 at 12:16 PM, Susheel Kumar <susheel2777@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.sethi@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

Mime
View raw message