toluaina / pgsync

Postgres to Elasticsearch/OpenSearch sync
https://pgsync.com
MIT License
1.11k stars 174 forks source link

pgsync doesn't support "completion" type #417

Closed parisa-mghd closed 1 year ago

parisa-mghd commented 1 year ago

PGSync version:

Postgres version:

Elasticsearch version:

Redis version:

Python version:

Problem Description: I am trying implement suggest completion to my index mapping,but it seems that pgsync doesn't suppot it

Error Message (if any):

RuntimeError: Invalid Elasticsearch type completion
[
    {
        "database": "",
        "index": "",
        "nodes": {
            "table": "",
            "columns": [
                "id",
                "name"
            ],
            "transform": {
                    "mapping": {
                        "name": {"type": "completion"}

                        }
                    }                

        }
    }
]
toluaina commented 1 year ago

I have now added this to the main branch.

toluaina commented 1 year ago

Closing as resolved, thanks

parisa-mghd commented 1 year ago

still not working RuntimeError: Invalid Elasticsearch type compeletion