Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-14916: Update timeseries docs

Joel Bernsteind8ebb7c54d19
diff --git a/solr/solr-ref-guide/src/stream-source-reference.adoc b/solr/solr-ref-guide/src/stream-source-reference.adoc
index 9a9de293090..2363de0bb74 100644
--- a/solr/solr-ref-guide/src/stream-source-reference.adoc
+++ b/solr/solr-ref-guide/src/stream-source-reference.adoc
@@ -617,6 +617,8 @@ JSON Facet API as its high performance aggregation engine.
* `collection`: (Mandatory) Collection the stats will be aggregated from.
* `q`: (Mandatory) The query to build the aggregations from.
* `field`: (Mandatory) The date field for the time series.
+* `split`: (Optional) A string field. Will produce separate time lines for each value in the field.
+* `limit`: (Optional) A limit on the number of values in the split field for each time bucket. Split values are in descending order by the first metric.
* `start`: (Mandatory) The start of the time series expressed in Solr date or date math syntax.
* `end`: (Mandatory) The end of the time series expressed in Solr date or date math syntax.
* `gap`: (Mandatory) The time gap between time series aggregation points expressed in Solr date math syntax.
@@ -634,7 +636,9 @@ for a numeric column and can be specified multiple times in the same timeseries
----
timeseries(collection1,
q=*:*,
- field="rec_dt"
+ field="rec_dt",
+ split="customer_s",
+ limit="5",
start="NOW-30DAYS",
end="NOW",
gap="+1DAY",