mirror of https://github.com/apache/lucene.git
SOLR-7452: fix facet refinement for method:dvhash
This commit is contained in:
parent
db2b19f6ba
commit
67876b3027
|
@ -98,6 +98,11 @@ public class FacetField extends FacetRequestSorted {
|
|||
FieldType ft = sf.getType();
|
||||
boolean multiToken = sf.multiValued() || ft.multiValuedFieldCache();
|
||||
|
||||
if (fcontext.facetInfo != null) {
|
||||
// refinement... we will end up either skipping the entire facet, or doing calculating only specific facet buckets
|
||||
return new FacetFieldProcessorByArrayDV(fcontext, this, sf);
|
||||
}
|
||||
|
||||
NumberType ntype = ft.getNumberType();
|
||||
// ensure we can support the requested options for numeric faceting:
|
||||
if (ntype != null) {
|
||||
|
|
|
@ -238,7 +238,7 @@ public class TestJsonFacetRefinement extends SolrTestCaseHS {
|
|||
ModifiableSolrParams p = params("cat_s", "cat_s", "xy_s", "xy_s", "num_d", "num_d", "qw_s", "qw_s", "er_s","er_s");
|
||||
doBasicRefinement( p );
|
||||
|
||||
p.set("terms","method:dv,");
|
||||
p.set("terms","method:dvhash,");
|
||||
doBasicRefinement( p );
|
||||
|
||||
// multi-valued strings
|
||||
|
|
Loading…
Reference in New Issue