rename field to path in _analyzer mapping

This commit is contained in:
kimchy 2010-11-09 09:16:47 +02:00
parent 6b5e884b93
commit 8e2db2c68f
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -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;