Class DeleteLargeSearchTextChange

java.lang.Object
ch.tocco.nice2.dbrefactoring.spi.liquibase.JdbcHelper
ch.tocco.nice2.enterprisesearch.impl.DeleteLargeSearchTextChange
All Implemented Interfaces:
liquibase.change.custom.CustomChange, liquibase.change.custom.CustomTaskChange

@Deprecated public class DeleteLargeSearchTextChange extends JdbcHelper implements liquibase.change.custom.CustomTaskChange
Deprecated.
Since version 2.27 we no longer save the search text for large documents (implemented in ResourceSearchTextExtractor). We did not cleaned the database. With elasticsearch as search engine we now get a "Request Entity Too Large" error if the index is rebuilt for documents. This custom change removes "old" search texts which are larger then the limit defined in the application property
  • Constructor Details

    • DeleteLargeSearchTextChange

      public DeleteLargeSearchTextChange()
      Deprecated.
  • Method Details

    • execute

      public void execute(liquibase.database.Database database) throws liquibase.exception.CustomChangeException
      Deprecated.
      Specified by:
      execute in interface liquibase.change.custom.CustomTaskChange
      Throws:
      liquibase.exception.CustomChangeException
    • getConfirmationMessage

      public String getConfirmationMessage()
      Deprecated.
      Specified by:
      getConfirmationMessage in interface liquibase.change.custom.CustomChange
    • setUp

      public void setUp() throws liquibase.exception.SetupException
      Deprecated.
      Specified by:
      setUp in interface liquibase.change.custom.CustomChange
      Throws:
      liquibase.exception.SetupException
    • setFileOpener

      public void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor)
      Deprecated.
      Specified by:
      setFileOpener in interface liquibase.change.custom.CustomChange
    • validate

      public liquibase.exception.ValidationErrors validate(liquibase.database.Database database)
      Deprecated.
      Specified by:
      validate in interface liquibase.change.custom.CustomChange