Re: Buzz measurement - Aggregate functions

2008-10-10 Thread Marcus Herou
Man I friend made me realize that facets will do the exact thing I want! Example: GET " http://192.168.10.12:8110/solr/feedItem/select/?indent=true&q=title:test*&rows=0&facet=true&facet.date=publishDate&facet.date.start=NOW/DAY-30DAYS&facet.date.end=NOW/DAY%2B1DAY&facet.date.gap=%2B1DAY "

Re: Buzz measurement - Aggregate functions

2008-10-10 Thread Uri Boness
you can try using the field collapse patch (currently in JIRA). You'll probably need to manually extract the patch code and apply it yourself as its latest update only applies to an earlier version of solr (1.3-dev). http://issues.apache.org/jira/browse/SOLR-236 Cheers, Uri Marcus Herou wrote

Buzz measurement - Aggregate functions

2008-10-10 Thread Marcus Herou
Hi. Anyone have an idea of how I would create a query which finds the data backing a trend graph where date is X and num(docs) is on Y axis ? This is quite a common use case in "buzz" analysis and currently I'm doing a stupid query which iterates over the date range and queries lucene for every d