Closed (fixed)
Project:
Search API Solr
Version:
8.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Dec 2017 at 04:02 UTC
Updated:
29 May 2018 at 15:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
edaa commentedAdd a patch
Comment #3
edaa commentedThe major changes in above patch:
Comment #4
mkalkbrennerThanks for pointing that out!
But the proposed fix is wrong, because we'll lose drupal's schema verification since a string can be anything.
We already have code at various places that coverts drupal booleans to strings. It seems that we missed that when creating the Solr XML config files.
Examples, where the convertion already happens:
SearchApiSolrBackend::formatFilterValue()
SolrFieldTypeListBuilder::getSchemaExtraFieldsXml()
I think we should adjust SolrFieldType::buildXmlFromArray() accordingly.
Comment #5
edaa commentedThanks, I didn't notice the convertion already happens. So closed it.
Comment #6
mkalkbrennerI re-open it as a reminder that I have to check all the places. I'm not sure that we covered all places.
Comment #7
mkalkbrenner