Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 56 for doc_id (0.03 seconds)

  1. src/test/java/org/codelibs/fess/it/admin/DocumentsTests.java

            for (Map<String, Object> doc : docs) {
                String docId = doc.get("doc_id").toString();
                given().contentType("application/json").header("Authorization", getTestToken()).delete(SEARCHLIST_API_PATH + "/doc/" + docId);
            }
            refresh();
    
            deleteTestToken();
        }
    
        @Override
        protected String getNamePrefix() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java

            Map<String, Object> dataMap = new HashMap<>();
            dataMap.put("url", "http://example.com/test");
            dataMap.put("doc_id", "existing-doc-id");
    
            indexUpdateCallback.store(paramMap, dataMap);
    
            // Should keep existing doc_id
            assertEquals("existing-doc-id", dataMap.get("doc_id"));
        }
    
        @Test
        public void test_concurrentStore() throws Exception {
            // Test thread safety
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            indexUpdater.updateDocument(doc);
    
            assertNull(doc.get("boost"));
            assertNotNull(doc.get("doc_id"));
        }
    
        // Test updateDocument with existing doc_id
        @Test
        public void test_updateDocument_existingDocId() {
            final Map<String, Object> doc = new HashMap<>();
            doc.put("doc_id", "existing_id");
            doc.put("url", "http://example.com");
    
            indexUpdater.updateDocument(doc);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 33.6K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

            assertEquals(0, deletedDocIdList.size());
    
            docList.clear();
            deletedDocIdList.clear();
            docList.add(new HashMap<>(Map.of(//
                    "config_id", "W01", //
                    "doc_id", "1", //
                    "url", "http://test.com/001"//
            )));
            documentSizeByQuery = oldDocList.size();
            assertEquals(0, indexingHelper.deleteOldDocuments(client, docList));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 29.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/it/search/FavoritesApiTests.java

                String docId = docs.get(0).get("doc_id").toString();
    
                // Set favorite
                Map<String, String> params = new HashMap<>();
                params.put("queryId", queryId);
    
                Response response =
                        given().contentType("application/json").params(params).when().post("/api/v1/documents/" + docId + "/favorite");
    
                // Should return 200 or 201
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/searchlist/ApiAdminSearchlistAction.java

        /**
         * Retrieves a specific document by ID.
         *
         * @param id the document ID to retrieve
         * @return JSON response containing the document
         */
        // GET /api/admin/searchlist/doc/{doc_id}
        @Execute
        public JsonResponse<ApiResult> get$doc(final String id) {
            return asJson(new ApiDocResponse().doc(searchEngineClient.getDocument(fessConfig.getIndexDocumentUpdateIndex(), builder -> {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigTest.java

                        return "expires";
                    case FessConfig.INDEX_FIELD_URL:
                        return "url";
                    case FessConfig.INDEX_FIELD_doc_id:
                        return "doc_id";
                    case FessConfig.INDEX_FIELD_ID:
                        return "id";
                    case FessConfig.INDEX_FIELD_VERSION:
                        return "_version";
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.6K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/query/QueryCommandTest.java

                @Override
                public String getIndexFieldId() {
                    return "_id";
                }
    
                @Override
                public String getIndexFieldDocId() {
                    return "doc_id";
                }
    
                @Override
                public String getIndexFieldBoost() {
                    return "boost";
                }
    
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

                    "file://home/taro/%E3%81%82.txt");
    
            assertUrlLink(null, "#not-found-docId");
            assertUrlLink("", "#not-found-docId");
            assertUrlLink(" ", "#not-found-docId");
        }
    
        private void assertUrlLink(String url, String expected) {
            Map<String, Object> doc = new HashMap<>();
            doc.put("doc_id", "docId");
            doc.put("url", url);
            assertEquals(expected, viewHelper.getUrlLink(doc));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  10. src/main/config/openapi/openapi-user.yaml

            '500':
              $ref: '#/components/responses/InternalServerError'
    
      /documents/{docId}/favorite:
        post:
          tags:
            - favorite
          summary: Set a favorite mark
          description: Set a favorite mark to the document
          operationId: setFavorite
          parameters:
            - name: docId
              in: path
              description: Document ID to be favorited
              required: true
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu May 09 06:31:27 GMT 2024
    - 21.6K bytes
    - Click Count (0)
Back to Top