Histogram Facet: Allow to define a key field and value script, closes #517.
This commit is contained in:
parent
5c6c4bfb5a
commit
a342029d36
|
@ -95,6 +95,7 @@ public class KeyValueScriptHistogramFacetCollector extends AbstractFacetCollecto
|
|||
|
||||
@Override protected void doSetNextReader(IndexReader reader, int docBase) throws IOException {
|
||||
fieldData = (NumericFieldData) fieldDataCache.cache(fieldDataType, reader, indexFieldName);
|
||||
valueScript.setNextReader(reader);
|
||||
}
|
||||
|
||||
@Override public Facet facet() {
|
||||
|
|
Loading…
Reference in New Issue