helios
helios copied to clipboard
issues adding null values to document
When I try to update a document with one of its field as null, I get the following error stack trace:
TypeError: Cannot read property 'replace' of null
at Object.escapeXML (C:\project\node_modules\helios\lib\utils.js:14:15)
at solrDoc.toXML (C:\project\node_modules\helios\lib\document.js:179:23)
at solrClient.addDoc (C:\project\node_modules\helios\lib\client.js:127:36)
It seems to be an issue because the escapeXML
gets called on null values as well.
Can we skip this escaping step for null values or make the escapeXML
function to handle null values differently?