From b39329966f8aff7bf3d7e7b05fad5f78e07ebc6b Mon Sep 17 00:00:00 2001 From: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com> Date: Wed, 12 Jul 2023 19:34:16 -0400 Subject: [PATCH] Allow using Lucene text indexes on mutable MV columns. (#11093) --- .../segment/local/segment/index/text/TextIndexType.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/text/TextIndexType.java b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/text/TextIndexType.java index e01adb19278..a23d2f550e6 100644 --- a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/text/TextIndexType.java +++ b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/text/TextIndexType.java @@ -183,10 +183,10 @@ public MutableIndex createMutableIndex(MutableIndexContext context, TextIndexCon if (config.isDisabled()) { return null; } - if (!context.getFieldSpec().isSingleValueField()) { - return null; - } if (config.getFstType() == FSTType.NATIVE) { + if (!context.getFieldSpec().isSingleValueField()) { + return null; + } return new NativeMutableTextIndex(context.getFieldSpec().getName()); } if (context.getConsumerDir() == null) {