Skip to content

handle automatic re-indexing because of change in associated model? #121

@jrochkind

Description

@jrochkind

Kithe provides some callback-based logic to automatically trigger re-index of Kithe models upon changes -- with features to disable/customize that etc.

But what if you are indexing based on an associated object? For instance, let's say a Work indexes the collection name(s) to provide faceting on collection. Work to collection is many-to-many with a join table.

This would mean Works would need be re-indexed if: A) A collection it belongs to changes it's name, or B) a Work changes what collections it is assigned to.

Right now, there is no way to make this happen automatically, you'd just need to make sure to re-index the work yourself if these things happened.

Should we put model-callback-based automatic logic in to configure things so that if, in that situation, the relevant Works could be automatically reindexed similar to for changes in the Work itself?

It does not need to be just work-collection, it could be any association, possibly even not Kithe::Model, associations to additional entities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions