{ pos: 4, season: 1, lane: 3 }, { pos: 3, season: 2, lane: 4 }, { pos: 2, season: 1, lane: 3 }, { pos: 2, season: 3, lane: 1 },{ pos: 3, season: 2, lane: 2 }
{ pos : [2,3,4], season : [1,2,3], lane : [1,2,3,4]}
from index 'index-name' as iwhere i.pos == 1 && i.lane == 3select distinct(i.pos) as pos,distinct(i.lane) as lane
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{ "season": 6, "osQue": 1, "osPatch": 601, "summonerId": 44951859, "c": 18, "pos": 4, "count": 2, "k": 16, "d": 6, "a": 12, "@metadata": { "@collection": "", "@flags": "Artificial, FromIndex" }}
from index "" as igroup by i.cwhere i.summonerId == 44951859 and i.osPatch == 722order by i.count descselect i.c
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
group r by new { r.season, r.summonerId, r.c} into g
group by c as long
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
{ "season": 7, "summonerId": 45174200, "c": 62, "count": 1, "@metadata": { "@collection": "lol_game_player_stats", "@flags": "Artificial, FromIndex" }}{ "season": 7, "summonerId": 31661247, "c": 115, "count": 5, "@metadata": { "@collection": "lol_game_player_stats", "@flags": "Artificial, FromIndex" }}
from d in docs.lol_game_player_statsselect new { d.season, d.summonerId, d.c, d.count}
from index test as igroup by i.cwhere i.summonerId == 44951859 and i.c == 51order by i.count as long desc
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
https://ravendb.net/docs/article-page/3.5/java/indexes/querying/dynamic-aggregation
The Orders/All index used in the query is a simple map-only index.
from testgroup by FieldToGroupOnselect FieldToGroupOn ,sum(CountIWantSumOf)
from d in docs.testselect new { d.FieldToGroupOn, d.CountIWantSumOf}
from index 'manual-index' group by FieldToGroupOn select FieldToGroupOn,sum(CountIWantSumOf)
FacetResults facetResults = session
.query(Order.class, Orders_All.class)
.where(o.total.gt(500))
.aggregateBy(o.product)
.sumOn(o.total)
.toList();
Hibernating Rhinos Ltd
Grisha Kotler l RavenDB Core Team Developer l Mobile: +972-54-586-8647
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
RavenDB paving the way to "Data Made Simple" http://ravendb.net/
from d in docs.lol_gameselect new{ d.season, d.osQue, d.osPatch,}
{ "Facets": [ { "FieldName": "season", "Mode": "Default", "Ranges": [] }, { "FieldName": "osQue", "Mode": "Default", "Ranges": [] }, { "FieldName": "osPatch", "Mode": "Default", "Ranges": [] } ], "@metadata": { "@collection": "Facets" }}
/dbname/query=from index 'test' & facetSetupDoc=facets/test
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.