Skip to content

Commit ab5909c

Browse files
LPD-84165 Auto SF
1 parent 672f6d9 commit ab5909c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

modules/dxp/apps/ai-hub/ai-hub-rest-impl/src/main/java/com/liferay/ai/hub/rest/internal/manager/v1_0/ContentRetrieverManagerImpl.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ private void _createIndex(String indexName) throws Exception {
124124
_searchEngineAdapter.execute(createIndexRequest);
125125
}
126126

127+
private void _deleteIndex(String indexName) {
128+
if (!_hasIndex(indexName)) {
129+
return;
130+
}
131+
132+
_searchEngineAdapter.execute(new DeleteIndexRequest(indexName));
133+
}
134+
127135
private ObjectDefinition _getObjectDefinition(long companyId)
128136
throws Exception {
129137

@@ -148,14 +156,6 @@ private String _readJSON(String fileName) throws Exception {
148156
return jsonObject.toString();
149157
}
150158

151-
private void _deleteIndex(String indexName) {
152-
if (!_hasIndex(indexName)) {
153-
return;
154-
}
155-
156-
_searchEngineAdapter.execute(new DeleteIndexRequest(indexName));
157-
}
158-
159159
private ContentRetriever _toContentRetriever(ObjectEntry objectEntry) {
160160
return new ContentRetriever() {
161161
{

0 commit comments

Comments
 (0)