Fix index version check in match_only_text (#130415)

Accidentally used the wrong backport index version in #130363.
This commit is contained in:
Jordan Powers 2025-07-02 11:18:07 -07:00 committed by GitHub
parent 54c9db9a41
commit a6c4c08527
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ public class MatchOnlyTextFieldMapper extends FieldMapper {
private static boolean isSyntheticSourceStoredFieldInBinaryFormat(IndexVersion indexCreatedVersion) { private static boolean isSyntheticSourceStoredFieldInBinaryFormat(IndexVersion indexCreatedVersion) {
return indexCreatedVersion.onOrAfter(IndexVersions.MATCH_ONLY_TEXT_STORED_AS_BYTES) return indexCreatedVersion.onOrAfter(IndexVersions.MATCH_ONLY_TEXT_STORED_AS_BYTES)
|| indexCreatedVersion.between( || indexCreatedVersion.between(
IndexVersions.SYNTHETIC_SOURCE_STORE_ARRAYS_NATIVELY_BACKPORT_8_X, IndexVersions.MATCH_ONLY_TEXT_STORED_AS_BYTES_BACKPORT_8_X,
IndexVersions.UPGRADE_TO_LUCENE_10_0_0 IndexVersions.UPGRADE_TO_LUCENE_10_0_0
); );
} }