1
0
Эх сурвалжийг харах

Percolation shouldn't fail when the _size field is enabled

Igor Motov 13 жил өмнө
parent
commit
a760f906e5

+ 3 - 0
src/main/java/org/elasticsearch/index/mapper/internal/SizeFieldMapper.java

@@ -137,6 +137,9 @@ public class SizeFieldMapper extends IntegerFieldMapper implements RootMapper {
         if (!enabled) {
             return null;
         }
+        if (context.flyweight()) {
+            return null;
+        }
         return new CustomIntegerNumericField(this, context.source().length());
     }