Details
Description
I'm trying out the Streaming Expressions in Solr 6.3.0.
Currently, I'm facing the issue of not being able to get the fields in the result-set to be displayed in the same order as what I put in the query.
For example, when I execute this query:
http://localhost:8983/solr/collection1/stream?expr=facet(collection1,
q=":",
buckets="id,cost,quantity",
bucketSorts="cost desc",
bucketSizeLimit=100,
sum(cost),
sum(quantity),
min(cost),
min(quantity),
max(cost),
max(quantity),
avg(cost),
avg(quantity),
count)&indent=true
I get the following in the result-set.
{
"result-set":{"docs":[
,
]}}
The fields are displayed randomly all over the place, instead of the order sum, min, max, avg as in the query. This may cause confusion to user who look at the output. Possible improvement to display the fields in the result-set in the same order as the query