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

Handle JoinField #57

Open
7 tasks
qcoumes opened this issue Mar 22, 2024 · 0 comments
Open
7 tasks

Handle JoinField #57

qcoumes opened this issue Mar 22, 2024 · 0 comments
Labels
feature New feature or request

Comments

@qcoumes
Copy link
Member

qcoumes commented Mar 22, 2024

  • Add JoinField.

  • Allow multiple django_opensearch_dsl.documents.Document with different Django model and mapping to point to the same index.

    • Merge the mapping definitions (error on conflict).
    • Store the list of models associated with a doc_class (we currently only store the opposite, i.e. the doc_classes associated with a model).
    • Catch probable errors with an explicit message (e.g. generate_id() needs to be defined for each model)
    • Handle routing since parent and children must be on the same shard (add "_routing": <shard_id> to _prepare_action())
  • Update commands to allow filtering on doc_classes in addition to the already existing indices filter.

An attempt has been made on #38, but I’m not fully satisfied with how it was implemented

Resources:

@qcoumes qcoumes converted this from a draft issue Mar 22, 2024
@qcoumes qcoumes added the feature New feature or request label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant