From 992becf0135341f6eea7a922b9dc693991d34219 Mon Sep 17 00:00:00 2001 From: kimchy Date: Thu, 24 Mar 2011 01:03:17 +0200 Subject: [PATCH] add value_script as an option to terms stats --- .../search/facet/termsstats/TermsStatsFacetProcessor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/facet/termsstats/TermsStatsFacetProcessor.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/facet/termsstats/TermsStatsFacetProcessor.java index 36bfd896c78..f49c8ce2758 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/search/facet/termsstats/TermsStatsFacetProcessor.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/search/facet/termsstats/TermsStatsFacetProcessor.java @@ -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)) {