Closed laulaz closed 1 month ago
Empty Dexterity fields of type List / Tuple (= None) are indexed by collective.solr in the <add> like this :
None
collective.solr
<add>
<field name="my_field" update="set">None</field>
As it is defined in Solr schema as string fields, we end up with :
<arr name="my_field"> <str>None</str> </arr>
After catalog.searchResults, the returned indexed value is ["None"]. We should have no arr instead.
catalog.searchResults
["None"]
arr
It works correctly for List / Tuple fields (like Plone Subjects) only when there is a missing_value=() or missing_value=[].
Subjects
missing_value=()
missing_value=[]
@reebalazs didn't we fix this problem recently?
This was fixed in https://github.com/collective/collective.solr/pull/370 and released in collective.solr 9.2.1
Empty Dexterity fields of type List / Tuple (=
None
) are indexed bycollective.solr
in the<add>
like this :As it is defined in Solr schema as string fields, we end up with :
After
catalog.searchResults
, the returned indexed value is["None"]
. We should have noarr
instead.It works correctly for List / Tuple fields (like Plone
Subjects
) only when there is amissing_value=()
ormissing_value=[]
.