[ https://issues.apache.org/jira/browse/SOLR-3177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13562798#comment-13562798 ]
Jan Høydahl commented on SOLR-3177: ----------------------------------- Thanks for the patch, Nikolai. You'll have a greater chance of having the patch committed if you bring it even closer to finalization. The patch should ideally be against TRUNK, alternatively against branch_4x. Also, please review this page http://wiki.apache.org/solr/HowToContribute#Generating_a_patch and try to follow the guidelines as closely as possible. Most important I think is that the patch only includes needed changes so that it is really easy to review what has changed. If you can write JUnit tests that's perfect, if not that's ok too :) > Excluding tagged filter in StatsComponent > ----------------------------------------- > > Key: SOLR-3177 > URL: https://issues.apache.org/jira/browse/SOLR-3177 > Project: Solr > Issue Type: Improvement > Components: SearchComponents - other > Affects Versions: 3.5, 3.6, 4.0-ALPHA, 4.1 > Reporter: Mathias H. > Priority: Minor > Labels: localparams, stats, statscomponent > Attachments: statsfilterexclude.patch > > > It would be useful to exclude the effects of some "fq" params from the set of > documents used to compute stats -- similar to > how you can exclude tagged filters when generating facet counts... > https://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters > So that it's possible to do something like this... > http://localhost:8983/solr/select?fq={!tag=priceFilter}price:[1 TO > 20]q=*:*&stats=true&stats.field={!ex=priceFilter}price > If you want to create a price slider this is very useful because then you can > filter the price ([1 TO 20) and nevertheless get the lower and upper bound of > the unfiltered price (min=0, max=100): > {noformat} > |<-[-------]-------------->| > $0 $1 $20 $100 > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org