This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8461db9b-224a-47c7-ac09-efcd9b9f0ac2 XWIKI-22635 Open

On restart, documents to re-index aren't correctly computed

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d4ed6adc-47f3-418f-a392-c0feab2eafe1 Michael Hamann created this issue on 05/Nov/24 15:20
 
Summary: On restart, documents to re-index aren't correctly computed
Issue Type: cid:jira-generated-image-avatar-8461db9b-224a-47c7-ac09-efcd9b9f0ac2 Bug
Affects Versions: 14.10
Assignee: Unassigned
Components: Search - Solr
Created: 05/Nov/24 15:20
Priority: cid:jira-generated-image-static-major-d11c9301-d6e5-4b53-8dd3-4dc213c23aeb Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

Unfortunately, this issue has no easy steps to reproduce. Basically, to reproduce, some documents need to exist in the database but not in the search index (or vice-versa). For example, in a space that has a child space, create a document that is alphabetically after all other documents and prevent that document from being indexed in Solr.

Expected result:

On restart, XWiki re-indexes just the added document.

Actual result:

On restart, XWiki re-indexes also the whole nested space and not just the added document.

The reason for this is that the comparator that is used internally for merging the results from the database and Solr sorts nested spaces first while both Solr and the database sort the nested spaces last. There are further differences, this can be seen with an integration test that checks if the sort order that is returned by Solr or the database is consistent with the used comparator.

 
 

1 update

 
cid:jira-generated-image-avatar-d4ed6adc-47f3-418f-a392-c0feab2eafe1 Changes by Michael Hamann on 05/Nov/24 15:20
 
Assignee: Michael Hamann