Search
Extends:
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 Methods
public delete(objectPattern: {"type": *, "id": *, "index": *}): * source
Deletes data
Deletes a document from the elasticsearch engine by id.
Params:
Name | Type | Attribute | Description |
objectPattern | {"type": *, "id": *, "index": *} |
|
Return:
* |
public get(objectPattern: {"type": *, "id": *, "index": *}): * source
Gets data
Retrieves a document from the elasticsearch engine by id.
Params:
Name | Type | Attribute | Description |
objectPattern | {"type": *, "id": *, "index": *} |
|
Return:
* |
public index(objectPattern: {"type": *, "id": *, "index": *, "data": *}): * source
Indexes data
Inserts or updates a document into the elasticsearch engine.
Params:
Name | Type | Attribute | Description |
objectPattern | {"type": *, "id": *, "index": *, "data": *} |
|
Return:
* |
public search(objectPattern: {"indices": *, "query": *, "sort": *, "page": *, "types": *}): * source
Searches for data
Params:
Name | Type | Attribute | Description |
objectPattern | {"indices": *, "query": *, "sort": *, "page": *, "types": *} |
|
Return:
* |