Percolation shouldn't fail when the _size field is enabled

This commit is contained in:
Igor Motov 2012-10-23 08:05:58 -04:00 committed by Shay Banon
parent 227250aaa0
commit a760f906e5
1 changed files with 3 additions and 0 deletions

View File

@ -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());
}