Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgsync does not support index.settings #589

Open
oleg4646 opened this issue Jan 27, 2025 · 0 comments
Open

pgsync does not support index.settings #589

oleg4646 opened this issue Jan 27, 2025 · 0 comments

Comments

@oleg4646
Copy link

oleg4646 commented Jan 27, 2025

I am trying to use settings in mapping but no settings in Elasticsearch
Data present in Elastic.
PostgreSQL: 16.1
ES: 8.12.2

{
  "database": "crm",
  "index": "leads",
  "settings": {
    "analysis": {
      "normalizer": {
        "customNormalizer": {
          "type": "custom",
          "char_filter": [],
          "filter": [
            "lowercase"
          ]
        }
      },
      "analyzer": {
        "customAnalyzer": {
          "type": "custom",
          "char_filter": [
            "html_strip"
          ],
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "stop"
          ]
        }
      }
    }
  },
  "plugins": [
    "Leads"
  ],
  "mapping": {
    "id": {
      "type": "keyword"
    },
    "name": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    },
    "phone_country_id": {
      "type": "keyword"
    },
    "agent_id": {
      "type": "keyword"
    },
    "updated_at": {
      "type": "date",
      "format": "strict_date_optional_time"
    },
    "activities": {
      "properties": {
        "comment": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword"
            }
          }
        },
        "id": {
          "type": "keyword"
        },
        "lead_id": {
          "type": "keyword"
        }
      }
    },
    "contacts": {
      "properties": {
        "email": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "phone": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        }
      }
    },
    "pipelines": {
      "properties": {
        "id": {
          "type": "keyword"
        },
        "code": {
          "type": "keyword"
        }
      }
    },
    "pipeline_stages": {
      "properties": {
        "id": {
          "type": "keyword"
        },
        "code": {
          "type": "keyword"
        }
      }
    }
  },
  "nodes": {
    "table": "leads",
    "schema": "public",
    "columns": [
      "id",
      "name",
      "email",
      "phone",
      "phone_country_id",
      "updated_at",
      "assignee_id"
    ],
    "transform": {
      "rename": {
        "assignee_id": "agent_id"
      }
    },
    "children": [
      {
        "table": "activities",
        "columns": [
          "id",
          "lead_id",
          "comment"
        ],
        "relationship": {
          "variant": "object",
          "type": "one_to_many",
          "foreign_key": {
            "child": [
              "lead_id"
            ],
            "parent": [
              "id"
            ]
          }
        }
      },
      {
        "table": "pipelines",
        "columns": [
          "id",
          "code"
        ],
        "relationship": {
          "variant": "object",
          "type": "one_to_one",
          "foreign_key": {
            "child": [
              "id"
            ],
            "parent": [
              "pipeline_id"
            ]
          }
        }
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant