From 8e2db2c68f2810233a87d03a6acfe1288a9dad10 Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 9 Nov 2010 09:16:47 +0200 Subject: [PATCH] rename field to path in _analyzer mapping --- .../elasticsearch/index/mapper/xcontent/AnalyzerMapper.java | 4 ++++ .../index/mapper/xcontent/XContentDocumentMapper.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/AnalyzerMapper.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/AnalyzerMapper.java index 34313f39ea1..0914357568c 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/AnalyzerMapper.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/AnalyzerMapper.java @@ -74,6 +74,10 @@ public class AnalyzerMapper implements XContentMapper { private final String path; + public AnalyzerMapper() { + this(Defaults.PATH); + } + public AnalyzerMapper(String path) { this.path = path; } diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentDocumentMapper.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentDocumentMapper.java index 2ed51dd8bba..c70a9edba7f 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentDocumentMapper.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentDocumentMapper.java @@ -58,7 +58,7 @@ public class XContentDocumentMapper implements DocumentMapper, ToXContent { private AllFieldMapper allFieldMapper = new AllFieldMapper(); - private AnalyzerMapper analyzerMapper = new AnalyzerMapper(null); + private AnalyzerMapper analyzerMapper = new AnalyzerMapper(); private NamedAnalyzer indexAnalyzer;