[ 
https://issues.apache.org/jira/browse/SOLR-9532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15503737#comment-15503737
 ] 

Erick Erickson commented on SOLR-9532:
--------------------------------------

Duplicate of 9490?

> BoolField always False when using shards
> ----------------------------------------
>
>                 Key: SOLR-9532
>                 URL: https://issues.apache.org/jira/browse/SOLR-9532
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.2
>         Environment: Ubuntu
>            Reporter: Gidon Junge
>            Priority: Blocker
>
> After upgrading from Solr 5.5 to 6.2 I've encountered the following issue:
> If my documents contains BoolField they will be False no matter the value 
> when I use sharding
> Solr 5.5:
> http://solr5:8983/solr/bug/select?q=*%3a*
> EQUALS the response from
> http://solr5:8983/solr/bug/select?shards=solr5%3a8983%2fsolr%2fbug&q=*%3a*
> Yet in Solr 6.2:
> http://solr6:8983/solr/bug/select?q=*%3a*
> Does NOT EQUALS the response from:
> http://solr6:8983/solr/bug/select?shards=solr6%3a8983%2fsolr%2fbug&q=*%3a*
> Schema used in both cases:
> <?xml version="1.0" encoding="UTF-8" ?>
> <schema name="OUR INDEX" version="2.0">
>     <types>
>         <fieldType name="boolean" class="solr.BoolField" 
> sortMissingLast="true" omitNorms="true"/>
>         <!--Binary data type. The data should be sent/retrieved in as Base64 
> encoded Strings -->
>         <fieldtype name="binary" class="solr.BinaryField"/>
>            <fieldType name="int" class="solr.TrieIntField" precisionStep="0" 
> omitNorms="true" positionIncrementGap="0"/>
>         <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" 
> omitNorms="true" positionIncrementGap="0"/>
>         <fieldType name="long" class="solr.TrieLongField" precisionStep="0" 
> omitNorms="true" positionIncrementGap="0"/>
>         <fieldType name="double" class="solr.TrieDoubleField" 
> precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
>         <fieldType name="string" class="solr.StrField" sortMissingLast="true" 
> omitNorms="true"/>
>     </types>
>     <fields>
>         <field name="_version_" type="long" indexed="true" stored="true"/>
>         <field name="id"                type="string"   indexed="true" 
> stored="true" required="true" />
>         <field name="transactionId"     type="long"     indexed="true" 
> stored="false"/>
>          <field name="boolean1" type="boolean" indexed="false" stored="true"  
> omitNorms="true" default="false"/>
>         <field name="boolean2" type="boolean" indexed="true" stored="true" 
> omitNorms="true" default="false"/>
>           <field name="boolean3" type="boolean" indexed="false" stored="true" 
>  omitNorms="true" default="true"/>
>         <field name="boolean4" type="boolean" indexed="true" stored="true" 
> omitNorms="true" default="true"/>
>     </fields>
>     <uniqueKey>id</uniqueKey>
>     <defaultSearchField>id</defaultSearchField>
>     <solrQueryParser defaultOperator="AND"/>
>    
> </schema>
> TEST DOCUMENTS:
> [
>     {
>         "id": "demo1-empty"
>     },
>     {
>         "id": "demo2-alltrue",
>         "boolean1": "true",
>         "boolean2": "true",
>         "boolean3": "true",
>         "boolean4": "true"
>     },
>     {
>         "id": "demo3-alldefault",
>         "boolean1": "false",
>         "boolean2": "false",
>         "boolean3": "true",
>         "boolean4": "true"
>     },
>     {
>         "id": "demo4-allopposite",
>         "boolean1": "true",
>         "boolean2": "true",
>         "boolean3": "false",
>         "boolean4": "false"
>     }
> ]
> Correct Response received in Solr 5.5 and without shards in 6.2:
>  <result name="response" numFound="4" start="0">
>         <doc>
>             <str name="id">demo1-empty</str>
>             <long name="_version_">1545889354915774464</long>
>             <bool name="boolean2">false</bool>
>             <bool name="boolean3">true</bool>
>             <bool name="boolean1">false</bool>
>             <bool name="boolean4">true</bool>
>         </doc>
>         <doc>
>             <str name="id">demo2-alltrue</str>
>             <bool name="boolean1">true</bool>
>             <bool name="boolean2">true</bool>
>             <bool name="boolean3">true</bool>
>             <bool name="boolean4">true</bool>
>             <long name="_version_">1545889381586305024</long>
>         </doc>
>         <doc>
>             <str name="id">demo3-alldefault</str>
>             <bool name="boolean1">false</bool>
>             <bool name="boolean2">false</bool>
>             <bool name="boolean3">true</bool>
>             <bool name="boolean4">true</bool>
>             <long name="_version_">1545889419038294016</long>
>         </doc>
>         <doc>
>             <str name="id">demo4-allopposite</str>
>             <bool name="boolean1">true</bool>
>             <bool name="boolean2">true</bool>
>             <bool name="boolean3">false</bool>
>             <bool name="boolean4">false</bool>
>             <long name="_version_">1545889444919246848</long>
>         </doc>
>     </result>
> Incorrect response received with shards parameter in Solr 6.2
>     <result name="response" numFound="4" start="0" maxScore="1.0">
>         <doc>
>             <str name="id">demo1-empty</str>
>             <long name="_version_">1545889354915774464</long>
>             <bool name="boolean2">false</bool>
>             <bool name="boolean3">false</bool>
>             <bool name="boolean1">false</bool>
>             <bool name="boolean4">false</bool>
>         </doc>
>         <doc>
>             <str name="id">demo2-alltrue</str>
>             <bool name="boolean1">false</bool>
>             <bool name="boolean2">false</bool>
>             <bool name="boolean3">false</bool>
>             <bool name="boolean4">false</bool>
>             <long name="_version_">1545889381586305024</long>
>         </doc>
>         <doc>
>             <str name="id">demo3-alldefault</str>
>             <bool name="boolean1">false</bool>
>             <bool name="boolean2">false</bool>
>             <bool name="boolean3">false</bool>
>             <bool name="boolean4">false</bool>
>             <long name="_version_">1545889419038294016</long>
>         </doc>
>         <doc>
>             <str name="id">demo4-allopposite</str>
>             <bool name="boolean1">false</bool>
>             <bool name="boolean2">false</bool>
>             <bool name="boolean3">false</bool>
>             <bool name="boolean4">false</bool>
>             <long name="_version_">1545889444919246848</long>
>         </doc>
>     </result>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to