add value_script as an option to terms stats

This commit is contained in:
kimchy 2011-03-24 01:03:17 +02:00
parent f20c6ec9cf
commit 992becf013
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ public class TermsStatsFacetProcessor extends AbstractComponent implements Facet
valueField = parser.text();
} else if ("script_field".equals(currentFieldName)) {
script = parser.text();
} else if ("value_script".equals(currentFieldName)) {
script = parser.text();
} else if ("size".equals(currentFieldName)) {
size = parser.intValue();
} else if ("all_terms".equals(currentFieldName) || "allTerms".equals(currentFieldName)) {