Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Latest commit

 

History

History

ingest-{{ cookiecutter.processor_type }}

Elasticsearch {{ cookiecutter.processor_type }} Ingest Processor

Explain the use case of this processor in a TLDR fashion.

Usage

PUT _ingest/pipeline/{{ cookiecutter.processor_type }}-pipeline
{
  "description": "A pipeline to do whatever",
  "processors": [
    {
      "{{ cookiecutter.processor_type | replace("-", "_") }}" : {
        "field" : "my_field"
      }
    }
  ]
}

PUT /my-index/my-type/1?pipeline={{ cookiecutter.processor_type }}-pipeline
{
  "my_field" : "Some content"
}

GET /my-index/my-type/1
{
  "my_field" : "Some content"
  "potentially_enriched_field": "potentially_enriched_value"
}

Configuration

Parameter Use
some.setting Configure x
other.setting Configure y

Setup

In order to install this plugin, you need to create a zip distribution first by running

gradle clean check

This will produce a zip file in build/distributions.

After building the zip file, you can install it like this

bin/elasticsearch-plugin install file:///path/to/ingest-{{ cookiecutter.processor_type }}/build/distribution/ingest-{{ cookiecutter.processor_type }}-0.0.1-SNAPSHOT.zip

Bugs & TODO

  • There are always bugs
  • and todos...