From b99179f0941006b1fc2417a0b42f9c17396b6e76 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 16 Oct 2012 09:27:03 -0400 Subject: [PATCH] Setting index_analyzer incorrectly sets analyzer fixes #2329 --- .../elasticsearch/index/mapper/core/AbstractFieldMapper.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/mapper/core/AbstractFieldMapper.java b/src/main/java/org/elasticsearch/index/mapper/core/AbstractFieldMapper.java index 64266f161609c..4ba653e15deab 100644 --- a/src/main/java/org/elasticsearch/index/mapper/core/AbstractFieldMapper.java +++ b/src/main/java/org/elasticsearch/index/mapper/core/AbstractFieldMapper.java @@ -165,9 +165,6 @@ protected T indexName(String indexName) { protected T indexAnalyzer(NamedAnalyzer indexAnalyzer) { this.indexAnalyzer = indexAnalyzer; - if (this.searchAnalyzer == null) { - this.searchAnalyzer = indexAnalyzer; - } return builder; }