add value_script as an option to terms stats
This commit is contained in:
parent
f20c6ec9cf
commit
992becf013
|
@ -74,6 +74,8 @@ public class TermsStatsFacetProcessor extends AbstractComponent implements Facet
|
||||||
valueField = parser.text();
|
valueField = parser.text();
|
||||||
} else if ("script_field".equals(currentFieldName)) {
|
} else if ("script_field".equals(currentFieldName)) {
|
||||||
script = parser.text();
|
script = parser.text();
|
||||||
|
} else if ("value_script".equals(currentFieldName)) {
|
||||||
|
script = parser.text();
|
||||||
} else if ("size".equals(currentFieldName)) {
|
} else if ("size".equals(currentFieldName)) {
|
||||||
size = parser.intValue();
|
size = parser.intValue();
|
||||||
} else if ("all_terms".equals(currentFieldName) || "allTerms".equals(currentFieldName)) {
|
} else if ("all_terms".equals(currentFieldName) || "allTerms".equals(currentFieldName)) {
|
||||||
|
|
Loading…
Reference in New Issue