跳转到主要内容

{{ 描述 }}

项目描述

ElasticSearch扩展用于datapackage-pipelines

安装

::

# use pip install

pip install datapackage-pipelines-elasticsearch

# OR clone the repo and install it with pip

git clone https://github.com/frictionlessdata/datapackage-pipelines-elasticsearch.git
pip install -e .

使用

您可以将datapackage-pipelines-elasticsearch用作(dpp)[https://github.com/frictionlessdata/datapackage-pipelines#datapackage-pipelines\]的插件。在pipeline-spec.yaml中,它将看起来像这样

.. code:: yaml

  ...
  - run: elasticseach.dump.to_index

dump.to_index


Saves the datapackage to an ElasticSearch instance.

*Parameters*:

-  ``engine`` - Connection string for connecting to the ElasticSearch
   instance (URL syntax)
    Also supports ``env://<environment-variable>``, which indicates that
   the connection string should be fetched from the indicated
   environment variable.
    If not specified, assumes a default of ``env://DPP_ELASTICSEARCH``
    Environment variable should take the form of 'host:port' or a
   fully-qualified url (e.g.
   '`https://user:pass@host:port <https://user:pass@host:port>`__\ ' or
   '`https://host:port <https://host:port>`__\ ' etc.)
-  ``indexes`` - Mapping between resources and indexes. Keys are index
   names, value is a list of objects with the following attributes:
-  ``resource-name`` - name of the resource that should be dumped to the
   table
-  ``doc-type`` - The document type to use when indexing docuemtns

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分布

datapackage-pipelines-elasticsearch-0.0.14.tar.gz (6.2 kB 查看哈希值)

上传时间 源代码

构建分布

datapackage_pipelines_elasticsearch-0.0.14-py2.py3-none-any.whl (5.6 kB 查看哈希值)

上传时间 Python 2 Python 3

支持者