the elasticsearch client.
the aggregation service.
common helper to issue elasticsearch queries.
Returns a co-occurrence network matching the given search query.
Returns a co-occurrence network matching the given search query.
the search query.
a map linking from entity types to the number of nodes to request for each type.
a list of entity ids that should be excluded from the result. The result will contain no models.NodeBucket associated with one of the ids given in this list.
the data source index or database name to query.
a models.Network consisting of the nodes and relationships of the created co-occurrence network.
Returns important terms representing the relationship between both nodes based on the underlying document content.
Returns important terms representing the relationship between both nodes based on the underlying document content.
the search query.
the first adjacent node of the edge.
the second adjacent node of the edge.
the number of keywords to fetch.
the data source index or database name to query.
a list of models.KeyTerm representing important terms for the given relationship.
Accumulates the number of entities that fall in a certain entity type and co-occur with the given entity.
Accumulates the number of entities that fall in a certain entity type and co-occur with the given entity.
The result will contain n different buckets with n representing the distinct entity types for the underlying collection.
the search query.
the entity id.
the data source index or database name to query.
a map linking from the unique entity type to the number of neighbors of that type.
Returns entities co-occurring with the given entity matching the search query.
Returns entities co-occurring with the given entity matching the search query.
the search query.
the entity id.
the number of neighbors to fetch.
a list of entity ids that should be excluded from the result. The result will contain no models.NodeBucket associated with one of the ids given in this list.
the data source index or database name to query.
a list of models.NodeBucket co-occurring with the given entity.
Adds new nodes to the current network matching the given search query.
Adds new nodes to the current network matching the given search query.
The method induces relationships and nodes for the given entitiesToAdd considering the already present network i.e. it induces relationships between the new nodes and the current network and between the new nodes. It does not provide nodes for the current network nor relationships between those nodes.
the search query.
the entity ids of the current network.
the data source index or database name to query.
a models.Network consisting of the nodes and relationships of the created co-occurrence network.
Implementation of models.services.NetworkService using an elasticsearch index as backend.