You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let a solr schema.xml have a index named foo
Let a number of objects (ex. id=[bar, baz] ) in the plone tree have a sibling (or ancestor) object named foo
Solr raises an exception indexing bar and baz.
Caused by: java.lang.IllegalArgumentException: Document contains at least one immense term in field="foo" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped.
I suppose this is because foo is acquired in the bar and baz context and solr gets the whole foo html page to be pushed inside foo index field.
The text was updated successfully, but these errors were encountered:
Don't you have the same problem when you do this without solr? I expect that when you add an index foo in the Plone portal_catalog and create the same situation, that you run into similar problems. There may not be an actual error, but the foo html will still end up in the index. I am pretty sure I have seen this happen before.
I think the best solution would be to define your own indexer based on plone.indexer that catches this situation.
Maybe collective.solr could catch situations like this, and truncate the value at 32766 (or a configurable length) before sending it to Solr. But the solution with your own indexer should help here as well.
Yes, there is the problem even with portal_catalog but it does not raises an error and you still have bar, baz, and all subtree's objects indexed (with anomalous value in the index foo). With c.solr these objects will be totally missing. That's my point.
Let a solr schema.xml have a index named
foo
Let a number of objects (ex. id=[bar, baz] ) in the plone tree have a sibling (or ancestor) object named
foo
Solr raises an exception indexing
bar
andbaz
.I suppose this is because
foo
is acquired in thebar
andbaz
context and solr gets the wholefoo
html page to be pushed inside foo index field.The text was updated successfully, but these errors were encountered: