java - Solr Query to get the overall stats, not just the filtered ones -
i'm trying use solr statscomponent retrieve information product prices. problem if put filter on these prices, stats=true&stats.field=price&fq=price:[10 100]
, stats requested range. price stats available products , not filtered ones. possible in single query?
thanks,
found out possible using groups. can use stats=true&stats.field=price&group=true&group.query=price:[10 100]
, leave main fq
other custom queries(or empty price available products). stats component return stats results of main fq
, while having results of group.query
in group component. way, can used numerical slider described in jira issue posted in comment. things tricky though when want use more 1 slider.
Comments
Post a Comment