U4-7833 - Changing doc type results in invalid lucene indexes, etc...

Created by Shannon Deminick 26 Jan 2016, 11:12:29 Updated by Claus Jensen 15 Nov 2016, 10:15:04

Relates to: U4-7698

The event handler for Examine doesn't re-index all content items for a given document type alias or property type alias that has changed which means that the index data is invalid.

Comments

Umbraco 07 Nov 2016, 13:00:59

For now: add messages in the UI to tell people they need to publish the items again and rebuilt their indexes.


Claus Jensen 09 Nov 2016, 12:10:00

PR: https://github.com/umbraco/Umbraco-CMS/pull/1613


Sebastiaan Janssen 14 Nov 2016, 13:22:27

I've just changed a doctype:

  • umbraco.config is updated with the correct new doctype
  • examine indexes are updated with the correct new doctype

Why is this message actually necessary @Shandem ?


Claus Jensen 14 Nov 2016, 13:38:46

@sebastiaan I can confirm that .. I just assumed that there was ''somewhere'' else that I didn't know of, that wasn't updated and that's why we needed it.


Shannon Deminick 14 Nov 2016, 15:57:28

To correct the confusion here, this is referring to: Actually changing a document type, not changing a document's document type! Any alias you change in a doc type or property type will not be reflected in the indexes and you'll need to rebuild the indexes. It turns out these changes DO get reflected in the cmsContentXml table and also in the umbraco.config file so no changes are needed there.


Shannon Deminick 14 Nov 2016, 16:01:34

I'll just fix it.


Shannon Deminick 14 Nov 2016, 16:42:15

I have reverted the original changes and fixed the underlying issue. Now whenever a content, media or member type alias or property type alias is changed, the indexes for those items will be re-indexed.

To test:

  • Change a content type alias - check that the examine indexes are updated correctly
  • Change a media type alias - check that the examine indexes are updated correctly
  • Change a member type alias - check that the examine indexes are updated correctly
  • Change a content type property type alias - check that the examine indexes are updated correctly
  • Change a media type property type alias - check that the examine indexes are updated correctly
  • Change a member property type type alias - check that the examine indexes are updated correctly
  • Change a content type property type alias - check that the cmsContentXml table and the umbraco.config file are updated correctly


Claus Jensen 15 Nov 2016, 10:14:27

Tested that indexes are updated on changes. Also confirmed cmsContentXml is updated. Merging in.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.5.4

Due in version: 7.5.5

Sprint: Sprint 46

Story Points: 1

Cycle: