cleanup unused term factory

This commit is contained in:
Shay Banon 2012-12-30 16:55:22 -08:00
parent 7f0034d42f
commit 1c93c8dfb8
2 changed files with 1 additions and 3 deletions

View File

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

View File

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