Skip to content

OAK-12372: ignore Lucene facet properties that are too long - #3091

Open
mkapalka wants to merge 1 commit into
apache:trunkfrom
oak-indexing:OAK-12372_lucene-ignore-long-facet-properties
Open

OAK-12372: ignore Lucene facet properties that are too long#3091
mkapalka wants to merge 1 commit into
apache:trunkfrom
oak-indexing:OAK-12372_lucene-ignore-long-facet-properties

Conversation

@mkapalka

Copy link
Copy Markdown

Lucene limits the lenght of the category path of a facet to 8191 characters. When Oak tries to index a property which name + value + 1 (path separator) exceeds this limit, Lucene throws an exception that aborts the indexing step. Since those kinds of facet properties are unlikely to be useful, it is better to ignore them and continue the indexing process. This patch does it but uses a feature flag to disable this new behaviour if ever needed (enabled by default).

Lucene limits the lenght of the category path of a facet to 8191 characters. When Oak tries to index
a property which name + value + 1 (path separator) exceeds this limit, Lucene throws an exception
that aborts the indexing step. Since those kinds of facet properties are unlikely to be useful, it
is better to ignore them and continue the indexing process. This patch does it but uses a feature
flag to disable this new behaviour if ever needed (enabled by default).
@reschke
reschke requested a review from thomasmueller August 27, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant