Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getItem (0.09 sec)

  1. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

            assertEquals("Hello", tokens.get(0).getTerm());
            assertEquals("world", tokens.get(1).getTerm());
            assertEquals("How", tokens.get(2).getTerm());
            assertEquals("are", tokens.get(3).getTerm());
            assertEquals("you", tokens.get(4).getTerm());
            assertEquals("I", tokens.get(5).getTerm());
            assertEquals("m", tokens.get(6).getTerm());
            assertEquals("fine", tokens.get(7).getTerm());
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java

            assertEquals(20, context.getMaxThreadCheckCount());
            assertEquals(-1, context.getMaxDepth());
            assertEquals(0L, context.getMaxAccessCount());
        }
    
        /**
         * Test sessionId getter and setter
         */
        public void test_sessionId() {
            assertNull(crawlerContext.getSessionId());
    
            crawlerContext.setSessionId("test-session-001");
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  3. README.md

    SuggestResponse response = suggester.suggest()
        .setQuery("sea")                    // user input
        .setSize(10)                        // max suggestions
        .execute()
        .getResponse();
    
    // Process suggestions
    response.getItems().forEach(item -> {
        System.out.println("Suggestion: " + item.getText()[0]);
        System.out.println("Score: " + item.getScore());
    });
    ```
    
    #### 4. Asynchronous Suggestions
    
    ```java
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sun Aug 31 03:31:14 UTC 2025
    - 12.1K bytes
    - Viewed (1)
  4. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

            } catch (final Exception e) {
                return keywords;
            }
            for (final TermQuery tq : termQueryList) {
                final String text = tq.getTerm().text();
                if (0 == text.length() || keywords.contains(text)) {
                    continue;
                }
                keywords.add(text);
            }
            return keywords;
        }
    
        /**
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/AbstractRule.java

     * Provides common functionality and properties for crawler rules.
     *
     * <p>
     * This class handles the registration of rules with the {@link RuleManager}
     * and provides getter and setter methods for common properties such as
     * {@code ruleId} and {@code responseProcessor}.
     * </p>
     *
     * <p>
     * Subclasses should extend this class and implement the abstract methods
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

                fail("Should propagate exception from listener");
            } catch (Exception e) {
                assertTrue(e.getMessage().contains("Test exception"));
            }
        }
    
        /**
         * Test getter and setter for componentName
         */
        public void test_componentName_getterSetter() {
            assertNull(factory.getComponentName());
    
            factory.setComponentName("testName");
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/AbstractTransformerTest.java

            // Setter should update the field
            transformer.setName("setterAccess");
            assertEquals("setterAccess", transformer.name);
    
            // Field modification should be reflected in getter
            transformer.name = "modifiedField";
            assertEquals("modifiedField", transformer.getName());
        }
    
        /**
         * Test name persistence across operations
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertEquals(1, item.getKinds().length);
            assertEquals(SuggestItem.Kind.DOCUMENT, item.getKinds()[0]);
        }
    
        @Test
        public void testGettersAndSetters() {
            // Test all getter and setter methods
            String[] text = { "initial" };
            String[][] readings = { { "read" } };
            SuggestItem item = new SuggestItem(text, readings, null, 0L, 0L, 1.0f, null, null, null, SuggestItem.Kind.USER);
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. docs/en/docs/release-notes.md

    def get_username():
        try:
            yield "Rick"
        except OwnerError as e:
            raise HTTPException(status_code=400, detail=f"Owner error: {e}")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id not in data:
            raise HTTPException(status_code=404, detail="Item not found")
        item = data[item_id]
        if item["owner"] != username:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top