intial support for pluggable type mappers

This commit is contained in:
kimchy 2010-03-28 18:36:42 +03:00
parent f560383b53
commit b42245df53
2 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,7 @@
package org.elasticsearch.index.mapper;
/**
* @author kimchy (Shay Banon)
* @author kimchy (shay.banon)
*/
public interface DocumentMapperParser {

View File

@ -155,6 +155,10 @@ public class MapperService extends AbstractIndexComponent implements Iterable<Do
}
}
public DocumentMapperParser documentMapperParser() {
return this.documentParser;
}
public void add(String type, String mappingSource) {
add(documentParser.parse(type, mappingSource));
}