codelibs / fess

Fess is very powerful and easily deployable Enterprise Search Server.
https://fess.codelibs.org
Apache License 2.0
1k stars 165 forks source link

Add JUnit Test Cases for IndexingHelper #2798

Closed marevol closed 9 months ago

marevol commented 9 months ago

This issue is focused on the addition of JUnit test cases for enhancements made to IndexingHelper.java. The primary changes involve modifications for improved logging, document deletion, and querying functionalities.

Key Changes:

  1. Implementing more efficient logging using localized variables.
  2. Modifying the deleteOldDocuments method for better tracking of deleted documents.
  3. Adding new debug logging for document deletion processes.
  4. Introducing protected methods for more efficient document querying and deletion.

The aim of these added test cases is to validate the functionality of the new changes and to ensure that they integrate seamlessly with the existing code, maintaining the overall performance and reliability of the IndexingHelper.