Hi Jörn & shown
"does not work properly" means pre-processors
(TrimFieldUpdateProcessorFactory and
RemoveBlankFieldUpdateProcessorFactory) don't trim and remove blank for
string fields.

example:

When the following schema:
---
  <field name="id" type="string" multiValued="false" indexed="true"
required="true" stored="true"/>
  <field name="title" type="string" uninvertible="false" indexed="true"
stored="true"/>
---

update following documents with "Documents" of solr admin:
---
{
    "id": "1",
    "title": {"set": " test "}
},
{
    "id": "2",
    "title": {set": ""}
}
---

Then the follows are indexed, when pre-processor:
---
{
    "id": "1",
    "title": " test "
},
{
    "id": "2",
    "title": ""
}
---

When post-processor:
---
{
    "id": "1",
    "title": "test"
},
{
    "id": "2"
}
---

I have no choice but use post-processor.
However bug of SOLR-8030 makes me not feel like using it.

By the way, version of solr is 8.4.

Best,
Yoshiaki

Reply via email to