From d4d80525de8f11d0961140b960d4edc6043c67ef Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 12 Jun 2011 11:03:43 +0300 Subject: [PATCH] Numeric values always omit norms (boosting), regardless of the configuration set, closes #1020. --- .../org/elasticsearch/index/mapper/core/NumberFieldMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/core/NumberFieldMapper.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/core/NumberFieldMapper.java index 91c98e3d7d9..6e50c965759 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/core/NumberFieldMapper.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/core/NumberFieldMapper.java @@ -228,7 +228,7 @@ public abstract class NumberFieldMapper extends AbstractFieldM isIndexed = mapper.indexed(); isTokenized = mapper.indexed(); omitTermFreqAndPositions = true; - omitNorms = true; + omitNorms = mapper.omitNorms(); if (value != null) { isStored = true;