- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for SuggestResponse (0.09 sec)
-
src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestResponse.java
import org.codelibs.fess.suggest.request.Response; public class SuggestResponse implements Response { protected final String index; protected final long tookMs; protected final List<String> words; protected final int num; protected final long total; protected final List<SuggestItem> items;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 1.7K bytes - Viewed (0) -
test-site/app/models/SuggestIndex.java
import org.codelibs.fess.suggest.index.contents.document.DocumentReader; import org.codelibs.fess.suggest.index.contents.document.ESSourceReader; import org.codelibs.fess.suggest.request.suggest.SuggestResponse; public class SuggestIndex { public SuggestResponse suggest(String query) { return ComponentsUtil.suggester.suggest() .setQuery(query) .execute().getResponse(); } public void index() {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Fri Nov 06 08:48:32 UTC 2015 - 964 bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 4.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterTest.java
suggester.refresh(); SuggestResponse response1 = suggester.suggest().setQuery("tes").setSuggestDetail(true).execute().getResponse(); assertEquals(1, response1.getNum()); SuggestResponse response2 = suggester.suggest().setQuery("hoge").setSuggestDetail(true).execute().getResponse(); assertEquals(1, response2.getNum());
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 37K bytes - Viewed (0) -
test-site/app/controllers/Suggest.java
package controllers; import models.*; import org.codelibs.fess.suggest.request.suggest.SuggestResponse; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.json.JsonXContent; import play.Logger; import play.mvc.Controller; import play.mvc.Result; import java.util.Map; public class Suggest extends Controller { public static Result get() {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Fri Nov 06 08:48:32 UTC 2015 - 2.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java
import org.opensearch.index.query.functionscore.ScoreFunctionBuilders; import org.opensearch.search.SearchHit; import org.opensearch.search.sort.SortOrder; public class SuggestRequest extends Request<SuggestResponse> { private String index = null; private String query = ""; private int size = 10; private final List<String> tags = new ArrayList<>();
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 13.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/json/SearchApiManager.java
} final SuggestResponse suggestResponse = builder.execute().getResponse(); buf.append("\"query_time\":").append(suggestResponse.getTookMs()); buf.append(",\"record_count\":").append(suggestResponse.getTotal()); buf.append(",\"page_size\":").append(suggestResponse.getNum()); if (!suggestResponse.getItems().isEmpty()) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 12 01:54:46 UTC 2024 - 50.3K bytes - Viewed (0) -
README.ja.md
* suggesterの設定 * インデックス/タイプ名 * tagフィールド名 * roleフィールド名 * .suggest-array * suggesterの設定(配列) * 対応フィールド名 2回目以降のインスタンス生成時には、作成済みの設定が再利用されます。 ### Suggestリクエスト ```java SuggestResponse response = suggester.suggest().setQuery("kensaku").execute().getResponse(); ``` ### Suggest async widh lambda ``` suggester.suggest().setQuery("kensaku").execute() .done( response -> {} ).error(
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Mon Jul 27 10:00:55 UTC 2015 - 2.2K 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 -> {} ).error(
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/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequestBuilder.java
import org.codelibs.fess.suggest.normalizer.Normalizer; import org.codelibs.fess.suggest.request.RequestBuilder; import org.opensearch.client.Client; public class SuggestRequestBuilder extends RequestBuilder<SuggestRequest, SuggestResponse> { public SuggestRequestBuilder(final Client client, final ReadingConverter readingConverter, final Normalizer normalizer) { super(client, new SuggestRequest()); request.setReadingConverter(readingConverter);
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 2.8K bytes - Viewed (0)