Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for delete$document (0.1 sec)

  1. src/main/java/org/codelibs/fess/app/web/api/admin/suggest/ApiAdminSuggestAction.java

            }
            return asJson(new ApiResult.ApiResponse().status(ApiResult.Status.OK).result());
        }
    
        // DELETE /api/admin/suggest/document
        @Execute
        public JsonResponse<ApiResult> delete$document() {
            if (!suggestHelper.deleteDocumentWords()) {
                throwValidationErrorApi(messages -> messages.addErrorsFailedToDeleteDocInAdmin(GLOBAL));
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

        }
    
        public boolean deleteDocumentWords() {
            final SuggestDeleteResponse response = suggester.indexer().deleteDocumentWords();
            if (response.hasError()) {
                logger.warn("Failed to delete document words.", response.getErrors().get(0));
                return false;
            }
            refresh();
            return true;
        }
    
        public boolean deleteQueryWords() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/action/FessMessages.java

        public static final String ERRORS_cannot_delete_doc_because_of_running = "{errors.cannot_delete_doc_because_of_running}";
    
        /** The key of the message: Failed to delete document. */
        public static final String ERRORS_failed_to_delete_doc_in_admin = "{errors.failed_to_delete_doc_in_admin}";
    
        /** The key of the message: Failed to send the test mail. */
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

                }
            } finally {
                executor.shutdownNow();
            }
    
            if (!deleteUrlList.isEmpty()) {
                deleteDocuments();
            }
            indexUpdateCallback.commit();
        }
    
        protected void deleteDocuments() {
            final SearchEngineClient searchEngineClient = ComponentUtil.getSearchEngineClient();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

                        final Object idValue = document.get(fessConfig.getIndexFieldId());
                        if (idValue != null && !indexingHelper.deleteDocument(searchEngineClient, idValue.toString())) {
                            logger.debug("Failed to delete expired document: {}", url);
                        }
                        return true;
                    }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/it/CrawlTestBase.java

        protected static Response deleteMethod(final String path) {
            return given().contentType("application/json").header("Authorization", getTestToken()).delete(path);
        }
    
        protected static void deleteDocuments(final String queryString) {
            List<String> docIds = new ArrayList<>();
            Response response = given().contentType("application/json").param("scroll", "1m").param("q", queryString)
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            return searchEngineClient.update(fessConfig.getIndexDocumentUpdateIndex(), id, field, value);
        }
    
        public boolean deleteDocument(final SearchEngineClient searchEngineClient, final String id) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            return searchEngineClient.delete(fessConfig.getIndexDocumentUpdateIndex(), id);
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/it/search/SearchApiTests.java

        @BeforeEach
        protected void init() {
            refresh();
        }
    
        @AfterEach
        protected void tearDown() {
        }
    
        @AfterAll
        protected static void tearDownAll() {
            deleteDocuments("label:" + CRAWL_LABEL);
            deleteLabel(labelId);
            deleteLabel(crawlLabelId);
    
            final List<Map<String, Object>> jobLogList = readJobLog(NAME_PREFIX);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

                    return true;
                }
            };
            ComponentUtil.register(client, "searchEngineClient");
    
            final String id = "001";
    
            assertTrue(indexingHelper.deleteDocument(client, id));
            assertEquals("fess.update", resultMap.get("index"));
            assertEquals(id, resultMap.get("id"));
        }
    
        public void test_deleteDocumentByUrl() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 08:54:24 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top