elastic.pl -- Core Elastic search interface
This module is a thin layer over the Elastic REST interface. Eventually
this should go into a pack.
- es_get(+Path, -Result) is det
- es_put(+Path, +Data) is det
- es_post(+Path, +Data) is det
- es_post(+Path, +Data, -Result) is det
- Low level access to the Elastic HTTP service. Path is either an atom
or a /-separated segment list, e.g.,
Index/'_doc'
.
- Arguments:
-
Result | - is a JSON term represented as a dict. |
- es_add(+Index, +Data, -Reply, +Options) is det
- Add a document to the index Index. Data is a Prolog dict to
represent the document. This must satisfy the type as defined by
es_create_index/2.
- es_search(+Index, +Query, -Result) is det
- Search using Query, returning a list of Prolog dicts that express
the result.
- es_create_index(+Index, +Mapping) is det
- es_delete_index(+Index) is det
- Create or delete an index. Note that deleting an index also deletes
all its data.
Re-exported predicates
The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
- es_get(+Path, -Result) is det
- es_put(+Path, +Data) is det
- es_post(+Path, +Data) is det
- es_post(+Path, +Data, -Result) is det
- Low level access to the Elastic HTTP service. Path is either an atom
or a /-separated segment list, e.g.,
Index/'_doc'
.
- Arguments:
-
Result | - is a JSON term represented as a dict. |
- es_get(+Path, -Result) is det
- es_put(+Path, +Data) is det
- es_post(+Path, +Data) is det
- es_post(+Path, +Data, -Result) is det
- Low level access to the Elastic HTTP service. Path is either an atom
or a /-separated segment list, e.g.,
Index/'_doc'
.
- Arguments:
-
Result | - is a JSON term represented as a dict. |
- es_get(+Path, -Result) is det
- es_put(+Path, +Data) is det
- es_post(+Path, +Data) is det
- es_post(+Path, +Data, -Result) is det
- Low level access to the Elastic HTTP service. Path is either an atom
or a /-separated segment list, e.g.,
Index/'_doc'
.
- Arguments:
-
Result | - is a JSON term represented as a dict. |
- es_create_index(+Index, +Mapping) is det
- es_delete_index(+Index) is det
- Create or delete an index. Note that deleting an index also deletes
all its data.