Class

models.services

ESNetworkService

Related Doc: package services

Permalink

class ESNetworkService extends NetworkService

Implementation of models.services.NetworkService using an elasticsearch index as backend.

Linear Supertypes
NetworkService, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ESNetworkService
  2. NetworkService
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ESNetworkService(clientService: SearchClientService, aggregateService: AggregateService, utils: ESRequestUtils)

    Permalink

    clientService

    the elasticsearch client.

    aggregateService

    the aggregation service.

    utils

    common helper to issue elasticsearch queries.

    Annotations
    @Inject()

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createNetwork(facets: Facets, nodeFraction: Map[String, Int], exclude: List[Long])(index: String): Network

    Permalink

    Returns a co-occurrence network matching the given search query.

    Returns a co-occurrence network matching the given search query.

    facets

    the search query.

    nodeFraction

    a map linking from entity types to the number of nodes to request for each type.

    exclude

    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.

    index

    the data source index or database name to query.

    returns

    a models.Network consisting of the nodes and relationships of the created co-occurrence network.

    Definition Classes
    ESNetworkServiceNetworkService
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getEdgeKeywords(facets: Facets, source: Long, dest: Long, numTerms: Int)(index: String): List[KeyTerm]

    Permalink

    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.

    facets

    the search query.

    source

    the first adjacent node of the edge.

    dest

    the second adjacent node of the edge.

    numTerms

    the number of keywords to fetch.

    index

    the data source index or database name to query.

    returns

    a list of models.KeyTerm representing important terms for the given relationship.

    Definition Classes
    ESNetworkServiceNetworkService
  12. def getNeighborCountsPerType(facets: Facets, entityId: Long)(index: String): Map[String, Int]

    Permalink

    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.

    facets

    the search query.

    entityId

    the entity id.

    index

    the data source index or database name to query.

    returns

    a map linking from the unique entity type to the number of neighbors of that type.

    Definition Classes
    ESNetworkServiceNetworkService
  13. def getNeighbors(facets: Facets, entityId: Long, size: Int, exclude: List[Long])(index: String): List[NodeBucket]

    Permalink

    Returns entities co-occurring with the given entity matching the search query.

    Returns entities co-occurring with the given entity matching the search query.

    facets

    the search query.

    entityId

    the entity id.

    size

    the number of neighbors to fetch.

    exclude

    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.

    index

    the data source index or database name to query.

    returns

    a list of models.NodeBucket co-occurring with the given entity.

    Definition Classes
    ESNetworkServiceNetworkService
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def induceNetwork(facets: Facets, currentNetwork: List[Long], nodes: List[Long])(index: String): Network

    Permalink

    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.

    facets

    the search query.

    currentNetwork

    the entity ids of the current network.

    index

    the data source index or database name to query.

    returns

    a models.Network consisting of the nodes and relationships of the created co-occurrence network.

    Definition Classes
    ESNetworkServiceNetworkService
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from NetworkService

Inherited from AnyRef

Inherited from Any

Ungrouped