- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for Suggester (0.13 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
test-site/app/components/ComponentsUtil.java
import org.codelibs.elasticsearch.runner.ElasticsearchClusterRunner; import org.codelibs.fess.suggest.Suggester; public class ComponentsUtil { public static String contentIndexName; public static String contentTypeName; public static ElasticsearchClusterRunner runner; public static Suggester suggester;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Mon Apr 20 08:41:37 UTC 2015 - 347 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/SuggesterBuilder.java
return this; } public SuggesterBuilder threadPoolSize(final int threadPoolSize) { this.threadPoolSize = threadPoolSize; return this; } public Suggester build(final Client client, final String id) { if (settings == null) { if (settingsBuilder == null) { settingsBuilder = SuggestSettings.builder(); }
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 4.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/settings/ArraySettingsTest.java
*/ package org.codelibs.fess.suggest.settings; import static org.codelibs.opensearch.runner.OpenSearchRunner.newConfigs; import static org.junit.Assert.assertEquals; import org.codelibs.fess.suggest.Suggester; import org.codelibs.opensearch.runner.OpenSearchRunner; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.opensearch.index.IndexNotFoundException;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 3.6K bytes - Viewed (0)