the elasticsearch client.
common helper to issue elasticsearch queries.
Creates multiple buckets - one per unique value that is associated with the given key.
Creates multiple buckets - one per unique value that is associated with the given key.
The following snippet will create five buckets. Each bucket represents one of the five most occurring recipient names that are associated with a document and match the empty filter:
aggregate(Facets.empty, "Recipient_names", 5, Nil, Nil)("enron")
Use models.services.DocumentService#getMetadataKeys in order to retrieve the available aggregation keys for the underlying collection.
the search query.
the key that belongs to the aggregated values.
the number of unique models.MetaDataBucket to create.
a list of values to filter the result. The result will only contain the models.MetaDataBucket associated with one of the keys given in this list. The size parameter is ignored when given a non empty include list.
a list of values that should be excluded from the result. The result will contain no models.MetaDataBucket associated with one of the keys given in this list.
the data source index or database name to query.
an instance of models.Aggregation with size models.MetaDataBucket matching the given filters and using the aggregationKey.
Creates multiple aggregations - one for each metadata from the underlying collection.
Creates multiple aggregations - one for each metadata from the underlying collection.
the search query.
the number of unique models.MetaDataBucket to create. The size is the same for all aggregations.
a list of metadata keys that should be excluded from the aggregation.
the data source index or database name to query.
a list of models.Aggregation. Each with size models.MetaDataBucket matching the given filters.
Creates multiple buckets - one per unique entity.
Creates multiple buckets - one per unique entity.
Each document has a list of co-occurring entities, which is used to build this aggregation.
The following snippet will create five buckets. Each bucket represents one of the five most occurring entity ids that are associated with a document and match the empty filter:
aggregateEntities(Facets.empty, 5, Nil, Nil)("enron")
the search query.
the number of unique models.NodeBucket to create.
a list of values to filter the result. The result will only contain the models.NodeBucket associated with one of the keys given in this list. The size parameter is ignored when given a non empty include list.
a list of values that should be excluded from the result. The result will contain no models.NodeBucket associated with one of the keys given in this list.
the data source index or database name to query.
an instance of models.Aggregation with size models.NodeBucket representing most occurring entities in the underlying collection.
Creates multiple buckets - one per unique entity.
Creates multiple buckets - one per unique entity. The aggregation only considers entities belonging to the given type.
the search query.
the entity type to filter for.
the number of unique models.NodeBucket to create.
a list of values to filter the result. The result will only contain the models.NodeBucket associated with one of the keys given in this list. The size parameter is ignored when given a non empty include list.
a list of values that should be excluded from the result. The result will contain no models.NodeBucket associated with one of the keys given in this list.
the data source index or database name to query.
an instance of models.Aggregation with size models.NodeBucket representing most occurring entities of the given type in the underlying collection.
Creates multiple buckets - one per unique keyword.
Creates multiple buckets - one per unique keyword.
Each document has a list important keywords, which is used to build this aggregation.
the search query.
the number of unique models.MetaDataBucket to create.
a list of values to filter the result. The result will only contain the models.MetaDataBucket associated with one of the keys given in this list. The size parameter is ignored when given a non empty include list.
a list of values that should be excluded from the result. The result will contain no models.MetaDataBucket associated with one of the keys given in this list.
the data source index or database name to query.
an instance of models.Aggregation with size models.MetaDataBucket representing most occurring entities in the underlying collection.
Implementation of models.services.AggregateService using an elasticsearch index as backend.
See ES documentation for more information.