From a760f906e5556ef1e8d10fa94fc6aee6bcb9cc1b Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Tue, 23 Oct 2012 08:05:58 -0400 Subject: [PATCH] Percolation shouldn't fail when the _size field is enabled --- .../elasticsearch/index/mapper/internal/SizeFieldMapper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/elasticsearch/index/mapper/internal/SizeFieldMapper.java b/src/main/java/org/elasticsearch/index/mapper/internal/SizeFieldMapper.java index f6203ef21c2..de1fbb8a87f 100644 --- a/src/main/java/org/elasticsearch/index/mapper/internal/SizeFieldMapper.java +++ b/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()); }