Questions tagged [aggregation]

Aggregation is a relationship between two classes that is best described as a "has-a" and "whole/part" relationship.

Aggregation is a relationship between two classes that is best described as a "has-a" and "whole/part" relationship. It is a more specialized version of the association relationship. The aggregate class contains a reference to another class and is said to have ownership of that class. Each class referenced is considered to be part-of the aggregate class

3383 questions
1
vote
1 answer

How to access document id in a script in ElasticSearch?

I'm trying to write a query that aggregates on document type. The thing is, the document type can be obtained from the document id - it's 4-5 first characters of the id, like BPR::fawL5CcPE72Wf3m93hUg2. Here's the query I put together: { …
chester89
  • 8,328
  • 17
  • 68
  • 113
1
vote
1 answer

de-normalization, weighted aggregates for updated tables in MySQL

this time I got a more general question. Should I use multiple views rather than stored procedures for weighted aggregation of data, if the original data is updated periodically? Basically I have a local MySQL database that is updated periodically…
Matt Bannert
  • 27,631
  • 38
  • 141
  • 207
1
vote
1 answer

Nested Aggregation Elasticsearch

I'm trying to build a nested aggregation in elasticsearch but it keeps giving errors. It says "cannot find agg type tags". How can I fix it. Thank you for your helps.Btw I don't have nested documents I have one document having 180 fields. Can I…
Fatih Aktepe
  • 571
  • 2
  • 10
  • 19
1
vote
1 answer

aggregations on multiple fields in nested object not working in elastic search 1.7x?

Mapping in amazon index looks like below. book has nested authors that have the multi-field "alias". "alias" and "alias.raw" should be valid fields in authors. { mappings: { book: { properties: { title: { …
Apollo
  • 31
  • 3
1
vote
0 answers

Elasticsearch group by field or missing field

I have a difficulties with elasticsearch. Here is what I want to do: Let's say unit of my index looks like this: { transacId: "qwerty", amount: 150, userId: "adsf", client: "mobile", goal: "purchase" } I want to build different types of…
1
vote
1 answer

Elastic Search 1.7: Returning Empty Buckets in Nested Terms Aggregation

I have an aggregation query here that is: Return the number of Records by Type, grouped by Creator in the last 6 months. The query is as follows: GET /test/records/_search?search_type=count { "aggs": { "timeRange": { "filter": { …
chronolinq
  • 113
  • 1
  • 11
1
vote
0 answers

Elasticsearch Aggregation size=0. Default settings tweak

I was working on elasticsearch and came to a point where I have 120 hits. But elastic search by default returns top 10 hits. Since then, every time I write an aggregation, I kept on giving "size=0". Is there a way where we can do this globally and…
1
vote
1 answer

LINQ object aggregation

I often see this kind of piece of code as an example of aggregating object enumerables in c#: IEnumerable myObjects = new List() {new MyCoolObject(){Value1=1, Value2=10}, new MyCoolObject(){Value1=2,…
Robert
  • 1,658
  • 16
  • 26
1
vote
1 answer

Editing Index After Aggregation Using XTS in R

I'm using the xts package to create a sample time series in R. I've created a range of dates, separated by the minute, created sample data for each of those dates, and then finally aggregating on the hour, summing the data. This works, except for…
giraffehere
  • 1,118
  • 7
  • 18
1
vote
0 answers

Birt Chart: How do I access an aggregation values from a bound dataSet via script

Could someone help me with the following: I have a chart element in .rptdesign file. it uses the dataset that has three column bindings. Two columns (x,y) came from the dataset and are used to make the plot. I also have another column binding…
JavaFan
  • 1,295
  • 3
  • 19
  • 28
1
vote
2 answers

How to get records with last dates in Django ORM(MySQL)?

I have models: class Reference(models.Model): name = models.CharField(max_length=50) class Search(models.Model): reference = models.ForeignKey(Reference) update_time = models.DateTimeField(auto_now_add=True) I have an instance of…
kalombo
  • 861
  • 1
  • 9
  • 31
1
vote
1 answer

ElasticSearch multifield not working

In my documents I have a field collaboration on which I would like to do aggregation queries. However I also want it to be full-text searchable, so I figured out I should make it a multifield. The field may look something like…
stpk
  • 2,015
  • 1
  • 16
  • 23
1
vote
1 answer

Is there any way to aggregate table's data in cassandra 2.1.6?

I am new in Cassandra. I want to aggregate my columns like SUM(), MAX(), etc. So is there any way like functions or query or something that can help me ?
karmadip dodiya
  • 231
  • 3
  • 16
1
vote
1 answer

Code difference between Aggregation and Composition

Can anyone give code example to show the difference between Aggregation and Composition. I have already Read This and did not understood how they differ in code. Please show the difference through code.
Aman
  • 979
  • 3
  • 10
  • 23
1
vote
1 answer

Java Aggregator for Akka

I am trying to implement a Java Aggregator for Akka, since it doesn't look like the Java API supports them (why not!?) Here's my best attempt thus far: // Groovy pseudo-code abstract class Aggregator extends UntypedActor { ActorRef recipient …
smeeb
  • 27,777
  • 57
  • 250
  • 447
1 2 3
99
100