mirror of https://github.com/apache/lucene.git
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:
parent
d987a8d48f
commit
90f7f3f3b4
|
@ -656,7 +656,6 @@ public class SimpleFacets {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Term template = new Term(field);
|
|
||||||
DocsEnum docsEnum = null;
|
DocsEnum docsEnum = null;
|
||||||
CharArr spare = new CharArr();
|
CharArr spare = new CharArr();
|
||||||
|
|
||||||
|
@ -676,10 +675,6 @@ public class SimpleFacets {
|
||||||
|
|
||||||
if (df >= minDfFilterCache) {
|
if (df >= minDfFilterCache) {
|
||||||
// use the filter cache
|
// 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) {
|
if (deState==null) {
|
||||||
deState = new SolrIndexSearcher.DocsEnumState();
|
deState = new SolrIndexSearcher.DocsEnumState();
|
||||||
|
|
Loading…
Reference in New Issue