小编Ste*_*pes的帖子

How do you use the Elasticsearch Ingest Attachment Processor Plugin with the Python package elasticsearch-dsl

I'm having trouble trying to use the Ingest Attachment Processor Plugin with ElasticSearch (5.5 on AWS, 5.6 local). I'm developing in Python (3.6) and am using the elasticsearch-dls library.

I'm using Persistence and have my class set-up like this:

import base64
from elasticsearch_dsl.field import Attachment, Text
from elasticsearch_dsl import DocType, analyzer

lower_keyword = analyzer('keyword', tokenizer="keyword", filter=["lowercase"])

class ExampleIndex(DocType):
class Meta:
    index = 'example'
    doc_type = 'Example'

    id = Text()
    name = Text(analyzer=lower_keyword)
    my_file = Attachment()
Run Code Online (Sandbox Code Playgroud)

I then have a …

python python-3.x elasticsearch elasticsearch-plugin elasticsearch-dsl

1
推荐指数
1
解决办法
5534
查看次数