Solr index not updated upon aspect removal

Description

Description:

If you first add the dublincore aspect including an identifier to a document and then remove the aspect, the expected behaviour is not to be able to find the document by the identifier. Currently, in 2.0, if you remove the aspect you are still able to search by the identifier.

Search Services 1.4 would remove the identifier from the cache but 2.0 does not show a change in the cached results

Steps to reproduce:

1 Setup Alfresco 6.2.2 and Search Services 2.0

2 Add a document x

3 Add aspect dublincore to document x

4 Add an identifier y to document x

5 Search for cm:identifier:y => document x found

6 Remove aspect dublincore from document x

7 Search for cm:identifier:y => document x found

 

Expected behaviour:

 Document x is not found

Observed behaviour:

 Document x is found

 

Environment

Windows, Linux

Testcase ID

None

Activity

Show:
Alex Mukha
November 4, 2020, 11:08 AM

The issue was fixed in the clone:

Done

Assignee

Unassigned

Reporter

Marco Tonelli

Labels

Escalated By

None

Security Issue

None

ACT Numbers

01016362

Premier Customer

None

Code Branch

None

Build Location

None

Regression Since

None

Work Funnel End

None

Patch Attached

None

Dependent Version/s

None

Cloud or Enterprise

None

Prioritization Score

None

Delivery Team

Search

Bug Priority

Category 2

Story Points

0

Components

Sprint

None

Affects versions