Permalink
Browse files

cast fix distinct date histo, version bump

  • Loading branch information...
dobe committed Aug 12, 2012
1 parent 4e15bcf commit f51ade0604f765ee97d198ad9c2e36a17d946f69
View
@@ -2,6 +2,12 @@
Changes for Lovelysystems Elasticsearch Plugins
===============================================
+2012/08/12 0.4.2
+================
+
+ - fix cast exception in distinct date histogram
+
+
2012/08/12 0.4.1
================
View
@@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.lovelysystems</groupId>
<artifactId>elasticsearch-ls-plugins</artifactId>
- <version>0.4.1</version>
+ <version>0.4.2</version>
<packaging>jar</packaging>
<description>Extensions for ElasticSearch</description>
<inceptionYear>2009</inceptionYear>
@@ -80,7 +80,7 @@ public StringDistinctDateHistogramFacetCollector(String facetName, String keyFie
}
@Override public Facet facet() {
- return new LongInternalDistinctDateHistogramFacet(facetName, comparatorType, histoProc.entries, true);
+ return new StringInternalDistinctDateHistogramFacet(facetName, comparatorType, histoProc.entries, true);
}
/**
@@ -2,6 +2,7 @@
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
+import org.elasticsearch.common.trove.ExtTLongObjectHashMap;
import org.elasticsearch.search.facet.Facet;
import org.elasticsearch.search.facet.InternalFacet;
@@ -21,6 +22,10 @@ public static void registerStreams() {
}
+ public StringInternalDistinctDateHistogramFacet(String name, ComparatorType comparatorType, ExtTLongObjectHashMap<DistinctEntry> entries, boolean cachedEntries) {
+ super(name, comparatorType, entries, cachedEntries);
+ }
+
@Override
protected InternalDistinctDateHistogramFacet newFacet() {
return new StringInternalDistinctDateHistogramFacet();
@@ -36,7 +41,7 @@ protected InternalDistinctDateHistogramFacet newFacet() {
return STREAM_TYPE;
}
- private StringInternalDistinctDateHistogramFacet() {
+ public StringInternalDistinctDateHistogramFacet() {
super();
}

0 comments on commit f51ade0

Please sign in to comment.