Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 93 for getItem (0.13 sec)

  1. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestResponse.java

         */
        public long getTotal() {
            return total;
        }
    
        /**
         * Returns the list of suggested items.
         * @return The list of items.
         */
        public List<SuggestItem> getItems() {
            return items;
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. 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)
  3. src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java

                final List<AnalyzeToken> termTokenList = termResponse.getTokens();
                if (termTokenList.isEmpty()) {
                    return text;
                }
    
                return termTokenList.get(0).getTerm();
            }
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

        protected QueryBuilder convertTermQuery(final QueryContext context, final TermQuery termQuery, final float boost) {
            final String field = getSearchField(context.getDefaultField(), termQuery.getTerm().field());
            final String text = termQuery.getTerm().text();
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            return convertTermQuery(fessConfig, context, termQuery, boost, field, text);
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/RelatedQueryHelperTest.java

            List<RelatedQuery> result = relatedQueryHelper.getAvailableRelatedQueryList();
            assertEquals(2, result.size());
            assertEquals("term1", result.get(0).getTerm());
            assertEquals("term2", result.get(1).getTerm());
        }
    
        public void test_load_emptyList() {
            mockBhv.setTestData(new ArrayList<>());
    
            int count = relatedQueryHelper.load();
            assertEquals(0, count);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/opensearch/config/bsentity/BsRelatedQuery.java

            return queries;
        }
    
        public void setQueries(String[] value) {
            registerModifiedProperty("queries");
            this.queries = value;
        }
    
        public String getTerm() {
            checkSpecifiedProperty("term");
            return convertEmptyToNull(term);
        }
    
        public void setTerm(String value) {
            registerModifiedProperty("term");
            this.term = value;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

                    Arguments.of(-1, -2L, -3L, -4L, -5L) // negative values
            );
        }
    
        // --- Mockito interaction: verify each getter is invoked and returns stubbed values ---
        @Test
        void mockitoMock_verifiesGetterInteractions() {
            // Arrange: mock and stub each getter with distinct values
            SmbBasicFileInfo mock = Mockito.mock(SmbBasicFileInfo.class);
            Mockito.when(mock.getAttributes()).thenReturn(7);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/opensearch/config/bsentity/BsRelatedContent.java

            return sortOrder;
        }
    
        public void setSortOrder(Integer value) {
            registerModifiedProperty("sortOrder");
            this.sortOrder = value;
        }
    
        public String getTerm() {
            checkSpecifiedProperty("term");
            return convertEmptyToNull(term);
        }
    
        public void setTerm(String value) {
            registerModifiedProperty("term");
            this.term = value;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/org/codelibs/fess/helper/RelatedQueryHelper.java

                if (map == null) {
                    map = new HashMap<>();
                    relatedQueryMap.put(key, map);
                }
                map.put(toLowerCase(entity.getTerm()), entity.getQueries());
            });
            this.relatedQueryMap = relatedQueryMap;
            return relatedQueryMap.size();
        }
    
        /**
         * Extracts the virtual host key from a RelatedQuery entity.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top