Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for Suggester (0.06 sec)

  1. src/main/java/org/codelibs/fess/suggest/Suggester.java

    import org.opensearch.common.xcontent.XContentType;
    import org.opensearch.index.query.QueryBuilder;
    import org.opensearch.index.query.QueryBuilders;
    
    public class Suggester {
        private static final Logger logger = LogManager.getLogger(Suggester.class);
    
        protected final Client client;
        protected final SuggestSettings suggestSettings;
        protected final ReadingConverter readingConverter;
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. README.ja.md

    ============
    
    Library for suggest.
    
    ## Usage
    
    ### Suggester生成
    
    ```java
    String suggestId = "id";
    Suggester suggester = Suggester.builder().build(client, suggestId);
    
    ```
    
    Suggesterを生成すると指定したIDに対応した以下の設定がElasticsearchのインデックスに作成されます。
    
    * .suggest
        * suggesterの設定
        * インデックス/タイプ名
        * tagフィールド名
        * roleフィールド名
    * .suggest-array
        * suggesterの設定(配列)
        * 対応フィールド名
    
    2回目以降のインスタンス生成時には、作成済みの設定が再利用されます。
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Jul 27 10:00:55 UTC 2015
    - 2.2K bytes
    - Viewed (0)
  3. test-site/app/models/SuggestIndex.java

                .setQuery(query)
                .execute().getResponse();
        }
    
        public void index() {
            Suggester suggester = ComponentsUtil.suggester;
            DocumentReader reader = new ESSourceReader(ComponentsUtil.runner.client(),
                suggester.settings(),
                ComponentsUtil.contentIndexName,
                ComponentsUtil.contentTypeName);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Fri Nov 06 08:48:32 UTC 2015
    - 964 bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            assertEquals(2, suggester.getDocumentWordsNum());
            assertEquals(1, suggester.getQueryWordsNum());
    
            suggester.indexer().deleteDocumentWords();
            suggester.refresh();
            assertEquals(1, suggester.getAllWordsNum());
            assertEquals(0, suggester.getDocumentWordsNum());
            assertEquals(1, suggester.getQueryWordsNum());
        }
    
        @Test
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

        }
    
        public long getAllWordsNum() {
            return suggester.getAllWordsNum();
        }
    
        public long getDocumentWordsNum() {
            return suggester.getDocumentWordsNum();
        }
    
        public long getQueryWordsNum() {
            return suggester.getQueryWordsNum();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  6. README.md

    ============
    
    Library for suggest.
    
    ## Usage
    
    ### Create suggester instance
    
    ```java
    String suggestId = "id";
    Suggester suggester = Suggester.builder().build(client, suggestId);
    
    ```
    
    ### Suggest
    
    ```java
    SuggestResponse response = suggester.suggest().setQuery("kensaku").execute().getResponse();
    ```
    
    ### Suggest async
    
    ```
    suggester.suggest().setQuery("kensaku").execute()
      .done(
        response -> {}
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Jan 19 03:33:49 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java

            }
            runner.refresh();
            suggester = Suggester.builder().build(runner.client(), "SuggesterTest");
            suggester.createIndexIfNothing();
        }
    
        @Test
        public void test_Read() throws Exception {
            String indexName = "test-index";
            Client client = runner.client();
            SuggestSettings settings = suggester.settings();
            int num = 10000;
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. test-site/app/Global.java

            try {
                ComponentsUtil.contentIndexName = "test-content";
                ComponentsUtil.contentTypeName = "test";
                ComponentsUtil.suggester = Suggester.builder().build(ComponentsUtil.runner.client(), "test");
                ComponentsUtil.suggester.createIndexIfNothing();
            } catch (Exception e) {
                Logger.error("Failed to create components.", e);
            }
        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Feb 23 14:02:03 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/SuggesterBuilderTest.java

            final String id = "BuildTest";
            final Suggester suggester = Suggester.builder().build(runner.client(), id);
    
            assertNotNull(suggester);
            assertNotNull(suggester.client);
            assertNotNull(suggester.indexer());
            assertNotNull(suggester.getNormalizer());
            assertNotNull(suggester.getReadingConverter());
            assertNotNull(suggester.settings());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/normalizer/DefaultNormalizerTest.java

    import static org.junit.Assert.assertEquals;
    
    import org.codelibs.fess.suggest.Suggester;
    import org.codelibs.fess.suggest.util.SuggestUtil;
    import org.codelibs.opensearch.runner.OpenSearchRunner;
    import org.junit.AfterClass;
    import org.junit.BeforeClass;
    import org.junit.Test;
    
    public class DefaultNormalizerTest {
        static Suggester suggester;
    
        static OpenSearchRunner runner;
    
        @BeforeClass
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top