Elasticsearch ingest plugin for match occurrences of words and index them in another field.
$ sh $ES_HOME/bin/elasticsearch-plugin install file:///<path_of_plugin_zip_file>
{
"description" : "Pipeline to extract words from text based in a regex expression",
"processors" : [
{
"occurrence": {
"field": "my_text_field",
"target_field": "matches_founded",
"match_field": "regexp"
}
}
]
}
{
"my_text_field": "This is just an example of text field with test-01. And with test-02.",
"regexp": "test-\\d+"
}
{
"matches_founded" : [
"test-01",
"test-02"
]
}