Im not sure if its possible as I am currently learning Solr and am very much a novice. I am querying a dataset with a few hundred thousand pieces to it and I'm returning the stats on the price of those sets. Most of my data has a price that is well above 0 (ideally it would be over 150 or 500), but with some queries there are far more 0's.
Is there some way to exclude the stats from making a min, max, average, and all that with values that are below a set value (0 in this case)?
I have tried /select?q=*%3A*&wt=json&indent=true&stats=true&stats.field={!min=5000}PRICE&indent=true
but it doesn't appear to be that easy.
An example of the data I'm seeing is as follows
"stats":{
"stats_fields":{
"PRICE":{
"min":0.0,
"max":81977.0,
"count":163,
"missing":0,
"sum":799747.0,
"sumOfSquares":5.9263205819E10,
"mean":4906.423312883436,
"stddev":18482.44220103939
}
}
}