Affects Version/s: 7.0.0 DXP SP9, 7.0.0 DXP FP73, 7.0.X
Component/s: Search Infrastructure > Elasticsearch Connector
Master/7.1 are not affected, because
LPS-86537 eliminated the use of the scroll API.
When calling reindex by specific entity types, we rely on the search scroll API when returning and processing the search hits. Once the initial search request returned the first batch of hits, we should keep scrolling the rest of the search hits.
Steps to reproduce
Reproduced also with Connector to Elasticsearch 6 1.0.1
- Startup Liferay 7.0.x
- Have more indexed document with entryClassName "com.liferay.journal.model.JournalArticle" than in the DB. Use the attached script to add 50 documents to the search index.
- Go to Control Panel -> Configuration -> Server Administration and run "Reindex com.liferay.journal.model.JournalArticle."
- Using the below query, verify that the documents created by the script were deleted properly.
Expected results: Index will get into sync with DB regarding JournalArticles
Actual reindex results: Only 10 documents will be deleted from the index.