SOLR-2531: remove some per-term waste in SimpleFacets

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1125011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-05-19 17:37:22 +00:00
parent d987a8d48f
commit 90f7f3f3b4
1 changed files with 0 additions and 5 deletions

View File

@ -656,7 +656,6 @@ public class SimpleFacets {
}
}
Term template = new Term(field);
DocsEnum docsEnum = null;
CharArr spare = new CharArr();
@ -676,10 +675,6 @@ public class SimpleFacets {
if (df >= minDfFilterCache) {
// use the filter cache
// TODO: need a term query that takes a BytesRef to handle binary terms
spare.reset();
ByteUtils.UTF8toUTF16(term, spare);
Term t = template.createTerm(spare.toString());
if (deState==null) {
deState = new SolrIndexSearcher.DocsEnumState();