Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for indexFromSearchWord (0.08 seconds)

  1. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

         * @return The SuggestIndexResponse.
         */
        public SuggestIndexResponse indexFromSearchWord(final String searchWord, final String[] fields, final String[] tags,
                final String[] roles, final int num, final String[] langs) {
            ensureOperations();
            return contentOps.indexFromSearchWord(index, searchWord, fields, tags, roles, num, langs, badWords);
        }
    
        /**
         * Adds a bad word.
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 20.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerErrorHandlingTest.java

        public void test_indexFromEmptySearchWord() throws Exception {
            String searchWord = "";
            String[] fields = new String[] { "content" };
    
            SuggestIndexResponse response = suggester.indexer().indexFromSearchWord(searchWord, fields, null, null, 1, null);
    
            assertNotNull(response);
            // Empty search word should result in no indexed items
            assertEquals(0, response.getNumberOfSuggestDocs());
        }
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerTest.java

            String[] tags = new String[] { "tag1" };
            String[] roles = new String[] { SuggestConstants.DEFAULT_ROLE };
    
            SuggestIndexResponse response = suggester.indexer().indexFromSearchWord(searchWord, fields, tags, roles, 1, null);
    
            assertNotNull(response);
            assertEquals(1, response.getNumberOfInputDocs());
            assertEquals(1, response.getNumberOfSuggestDocs());
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 28.6K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/suggest/index/operations/ContentIndexingOperations.java

         * @param num The number
         * @param langs The languages
         * @param badWords The bad words array
         * @return The SuggestIndexResponse
         */
        public SuggestIndexResponse indexFromSearchWord(final String index, final String searchWord, final String[] fields, final String[] tags,
                final String[] roles, final int num, final String[] langs, final String[] badWords) {
            if (logger.isDebugEnabled()) {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 21.7K bytes
    - Click Count (0)
Back to Top