Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for deleteDocument (0.08 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top