Skip to content

Not possible to get related items to re-index after removing an item #158

@Gleb-Itenberg

Description

@Gleb-Itenberg

In some cases, it is necessary to re-index related items when a web page or content item is updated or deleted.
Currently, this works correctly for updates. However, it is not possible to retrieve related items on deletion - the Kentico ContentQueryExecutor with the Linking method returns an empty collection in this scenario.

To Reproduce
Steps to reproduce the behavior:

  1. Create a content(or web page) type
  2. Add a field for selecting related items.
  3. Create an item of newly created type and select a related item
  4. Delete the selected related item.
  5. Try to call ContentQueryExecutor like this ContentItemQueryBuilder().ForContentType(type,
    config=>config.Linking(filedName, new []{linkinId}))

Expected behavior
It would be helpful if the IIndexEventItemModel provided a collection of related item IDs (and possibly their types) during deletion events.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions