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-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.dbrefactoring.spi.liquibase.JdbcHelper
JdbcHelper.SqlFunction<A,
B> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(liquibase.database.Database database) Deprecated.Deprecated.void
setFileOpener
(liquibase.resource.ResourceAccessor resourceAccessor) Deprecated.void
setUp()
Deprecated.liquibase.exception.ValidationErrors
validate
(liquibase.database.Database database) Deprecated.Methods inherited from class ch.tocco.nice2.dbrefactoring.spi.liquibase.JdbcHelper
ddlStatement, tableExists, uniqueIndexExists, withConnection, withResultSet, withStatement
-
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 interfaceliquibase.change.custom.CustomTaskChange
- Throws:
liquibase.exception.CustomChangeException
-
getConfirmationMessage
Deprecated.- Specified by:
getConfirmationMessage
in interfaceliquibase.change.custom.CustomChange
-
setUp
public void setUp() throws liquibase.exception.SetupExceptionDeprecated.- Specified by:
setUp
in interfaceliquibase.change.custom.CustomChange
- Throws:
liquibase.exception.SetupException
-
setFileOpener
public void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor) Deprecated.- Specified by:
setFileOpener
in interfaceliquibase.change.custom.CustomChange
-
validate
public liquibase.exception.ValidationErrors validate(liquibase.database.Database database) Deprecated.- Specified by:
validate
in interfaceliquibase.change.custom.CustomChange
-