Home Manual Reference Source
public class | source

Search

Extends:

src/mapping/core.js~Service → Search

ElasticSearch Service

This API is a very thin wrapper around ElasticSearch's API.

Static Member Summary

Static Public Members
public static get

Get default deployment id associated to Search service

Method Summary

Public Methods
public

delete(objectPattern: {"type": *, "id": *, "index": *}): *

Deletes data

public

get(objectPattern: {"type": *, "id": *, "index": *}): *

Gets data

public

index(objectPattern: {"type": *, "id": *, "index": *, "data": *}): *

Indexes data

public

search(objectPattern: {"indices": *, "query": *, "sort": *, "page": *, "types": *}): *

Searches for data

Static Public Members

public static get DEFAULT_DEPLOYMENT_ID: string: string source

Get default deployment id associated to Search service

Return:

string

Public Methods

public delete(objectPattern: {"type": *, "id": *, "index": *}): * source

Deletes data

Deletes a document from the elasticsearch engine by id.

Params:

NameTypeAttributeDescription
objectPattern {"type": *, "id": *, "index": *}
  • default: {"type":null,"id":null,"index":null}

Return:

*

public get(objectPattern: {"type": *, "id": *, "index": *}): * source

Gets data

Retrieves a document from the elasticsearch engine by id.

Params:

NameTypeAttributeDescription
objectPattern {"type": *, "id": *, "index": *}
  • default: {"type":null,"id":null,"index":null}

Return:

*

public index(objectPattern: {"type": *, "id": *, "index": *, "data": *}): * source

Indexes data

Inserts or updates a document into the elasticsearch engine.

Params:

NameTypeAttributeDescription
objectPattern {"type": *, "id": *, "index": *, "data": *}
  • default: {"type":null,"id":null,"index":null,"data":null}

Return:

*

Searches for data

Params:

NameTypeAttributeDescription
objectPattern {"indices": *, "query": *, "sort": *, "page": *, "types": *}
  • default: {"indices":null,"query":null,"sort":null,"page":null,"types":null}

Return:

*