Skip to content

When adding a search_document_id, it is impossible to find a record in the database #1732

@bart-westenenk-bex

Description

@bart-westenenk-bex

First
Search existing issues to see if it’s been discussed.
None could be find

Is your feature request related to a problem? Please describe.
Because we want to prevent issues when restoring a database backup and keeping the same searchkick index. We want to include a tenant id into the search_document_id. Currently, when using search with the load option, this will result in problems. Since searchkick can't find the accompanying record.

Describe the solution you'd like
Add an optional way to find the record in the case the search_id is overridden. Such as a "find_by_search_document_id" method or similar.

Additional context
Add any other context.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions