cleanup unused term factory
This commit is contained in:
parent
7f0034d42f
commit
1c93c8dfb8
|
@ -50,8 +50,6 @@ public class TypeFieldMapper extends AbstractFieldMapper<String> implements Inte
|
|||
|
||||
public static final String NAME = "_type";
|
||||
|
||||
public static final Term TERM_FACTORY = new Term(NAME, "");
|
||||
|
||||
public static final String CONTENT_TYPE = "_type";
|
||||
|
||||
public static class Defaults extends AbstractFieldMapper.Defaults {
|
||||
|
|
|
@ -67,7 +67,7 @@ public class TypeFilterParser implements FilterParser {
|
|||
//LUCENE 4 UPGRADE document mapper should use bytesref aswell?
|
||||
DocumentMapper documentMapper = parseContext.mapperService().documentMapper(type.utf8ToString());
|
||||
if (documentMapper == null) {
|
||||
filter = new TermFilter(new Term(TypeFieldMapper.TERM_FACTORY.field(), type));
|
||||
filter = new TermFilter(new Term(TypeFieldMapper.NAME, type));
|
||||
} else {
|
||||
filter = documentMapper.typeFilter();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue