intial support for pluggable type mappers
This commit is contained in:
parent
f560383b53
commit
b42245df53
|
@ -20,7 +20,7 @@
|
|||
package org.elasticsearch.index.mapper;
|
||||
|
||||
/**
|
||||
* @author kimchy (Shay Banon)
|
||||
* @author kimchy (shay.banon)
|
||||
*/
|
||||
public interface DocumentMapperParser {
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue