Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Duplicate
-
6.2
-
None
-
None
-
None
-
Ubuntu
Description
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": "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>