Skip to content

Commit

Permalink
SOLR-9176 Forward-port old facet method selection logic from 4.x to p…
Browse files Browse the repository at this point in the history
…revent forced override to FCS when computing facets for numeric typed single valued field.
  • Loading branch information
jesse-lvh committed May 31, 2016
1 parent 48c80f9 commit 512298f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ private NamedList<Integer> getTermCounts(String field, Integer mincount, ParsedP

final boolean multiToken = sf.multiValued() || ft.multiValuedFieldCache();

if (ft.getNumericType() != null && !sf.multiValued()) {
if (method == null && ft.getNumericType() != null && !sf.multiValued()) {
// the per-segment approach is optimal for numeric field types since there
// are no global ords to merge and no need to create an expensive
// top-level reader
Expand Down

0 comments on commit 512298f

Please sign in to comment.