- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for SuggestResponse (0.07 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) -
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) -
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.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)