Re: Division with Stats Component when Grouping in Solr

2015-06-14 Thread Erick Erickson
f > > All the links for detailed documentation are now broken. > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Division-with-Stats-Component-when-Grouping-in-Solr-tp4211402p4211751.html > Sent from the Solr - User mailing list archive at Nabble.com.

Re: Division with Stats Component when Grouping in Solr

2015-06-14 Thread kingofhypocrites
tachment/12606793/Search%20Analytics%20Component.pdf All the links for detailed documentation are now broken. -- View this message in context: http://lucene.472066.n3.nabble.com/Division-with-Stats-Component-when-Grouping-in-Solr-tp4211402p4211751.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread kingofhypocrites
_sum, visits_sum) ... but this doesn't work. -- View this message in context: http://lucene.472066.n3.nabble.com/Division-with-Stats-Component-when-Grouping-in-Solr-tp4211402p4211639.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread kingofhypocrites
message in context: http://lucene.472066.n3.nabble.com/Division-with-Stats-Component-when-Grouping-in-Solr-tp4211402p4211635.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread kingofhypocrites
r of results, I would need to precalculate this (division operation) if they happen to sort on it. I don't see anything like this mentioned in the api docs, so maybe it's not possible. -- View this message in context: http://lucene.472066.n3.nabble.com/Division-with-Stats-Component-whe

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread Erick Erickson
list. I've made a few replies to others that haven't gone through. I > am not sure if it's because I'm replying via email or what the issue is. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Division-with-Stats-Component-when

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread kingofhypocrites
472066.n3.nabble.com/Division-with-Stats-Component-when-Grouping-in-Solr-tp4211402p4211631.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread Bill Bell
It would be cool to be able to set 2 group by with facets >> GROUP BY >>site_id, keyword Bill Bell Sent from mobile On Jun 13, 2015, at 2:28 PM, Yonik Seeley wrote: >> GROUP BY >>site_id, keyword

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread Yonik Seeley
On Fri, Jun 12, 2015 at 10:30 AM, kingofhypocrites wrote: > I am migrating a database from SQL Server to Cassandra. Currently I have a > setup as follows: > > - Log data in Cassandra > - Summarize data in Spark and put into Cassandra summary tables > - Query data in Solr > > Everything fits beauti

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread William Bell
ke so: >>>>>> > > SELECT >>>>>> > > site_id, >>>>>> > > keyword, >>>>>> > > SUM(visits) as visits, >>>>>> > > CONVERT(DECIMAL(13, 3), SUM(bounces)) / SUM

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread William Bell
gt; > > report_all_keywords_daily >>>>> > > WHERE >>>>> > > site_id = 55 AND date_key >= '20150606' AND date_key <= >>>>> '20150608' >>>>> > > GROUP BY >>&g

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread William Bell
DER BY visits DESC >>>> > > >>>> > > Now I need to replicate this in Solr. The closest I could get to >>>> this is >>>> > by >>>> > > using the Stats component and then using field collapsin

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread William Bell
t;> group=true&group.field=keyword&stats=true&stats.field=visits&stats.facet=keyword >>> > >>> > > >>> > > And here are some results I get back: >>> > > http://pastebin.com/raw.php?i=Fxh

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread William Bell
in >> > SQL: >> > > <http://lucene.472066.n3.nabble.com/file/n4211402/pic.png> >> > > >> > > Is this possible or do I have to give up on the prospect of using >> Solr? >> > I >> > > have to quer

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread William Bell
e the functions. Also it seems to ignoring the > paging > > > for > > > the stats results and returns all groups regardless. > > > > > > Ultimately I'd like something like this which is what I would get in > > SQL: > > > <http://luce

Re: Division with Stats Component when Grouping in Solr

2015-06-13 Thread kingofhypocrites
do I have to give up on the prospect of using Solr? > I > > have to query this data dynamically so I can't pre-summarize all of it. > > > > To clarify I having the following two problems: > > - Paging is ignored for stats data > > - I can't figure out how

Re: Division with Stats Component when Grouping in Solr

2015-06-12 Thread Chris Hostetter
: However, I need to do able to divide certain metrics. I tried including : functions in the stats.field such as div(sum(bounce_rate), (sum(visits)) but : it doesn't recognize the functions. Also it seems to ignoring the paging for : the stats results and returns all groups regardless. i'm lost o

Re: Division with Stats Component when Grouping in Solr

2015-06-12 Thread Joel Bernstein
ttp://lucene.472066.n3.nabble.com/file/n4211402/pic.png> >> >> Is this possible or do I have to give up on the prospect of using Solr? I >> have to query this data dynamically so I can't pre-summarize all of it. >> >> To clarify I having the following two problems: >> - Paging is ignored for stats data >> - I can't figure out how to divide two stats together to get a third stat. >> Note: In some cases I would need to be able to sort on this combined stat >> >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Division-with-Stats-Component-when-Grouping-in-Solr-tp4211402.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> > >

Re: Division with Stats Component when Grouping in Solr

2015-06-12 Thread Joel Bernstein
ing is ignored for stats data > - I can't figure out how to divide two stats together to get a third stat. > Note: In some cases I would need to be able to sort on this combined stat > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Division-with-Stats-Component-when-Grouping-in-Solr-tp4211402.html > Sent from the Solr - User mailing list archive at Nabble.com. >

Division with Stats Component when Grouping in Solr

2015-06-12 Thread kingofhypocrites
following two problems: - Paging is ignored for stats data - I can't figure out how to divide two stats together to get a third stat. Note: In some cases I would need to be able to sort on this combined stat -- View this message in context: http://lucene.472066.n3.nabble.com/Division-wit