- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for SuggestUtil (0.18 sec)
-
src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java
import org.opensearch.search.SearchHit; public final class SuggestUtil { private static final int MAX_QUERY_TERM_NUM = 5; private static final int MAX_QUERY_TERM_LENGTH = 48; private static final Base64.Encoder encoder = Base64.getEncoder(); private static final int ID_MAX_LENGTH = 445; private SuggestUtil() { } public static String createSuggestTextId(final String text) {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 11.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/SuggesterBuilder.java
readingConverter = SuggestUtil.createDefaultReadingConverter(client, settings); } try { readingConverter.init(); } catch (final IOException e) { throw new SuggesterException(e); } if (contentsReadingConverter == null) { contentsReadingConverter = SuggestUtil.createDefaultContentsReadingConverter(client, settings);
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/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java
if (!scrollId.equals(response.getScrollId())) { SuggestUtil.deleteScrollContext(client, scrollId); } scrollId = response.getScrollId(); } } finally { SuggestUtil.deleteScrollContext(client, scrollId); }
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 26.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java
tagList.addAll(Arrays.asList(SuggestUtil.parseQuery(queryString, tagFieldName))); if (filterQueryString != null) { tagList.addAll(Arrays.asList(SuggestUtil.parseQuery(filterQueryString, tagFieldName))); } } final String[] tags = tagList.toArray(new String[tagList.size()]); final String[] roles1 = SuggestUtil.parseQuery(queryString, roleFieldName);
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 13.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/normalizer/DefaultNormalizerTest.java
import static org.codelibs.opensearch.runner.OpenSearchRunner.newConfigs; 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;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 2.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java
if (!scrollId.equals(response.getScrollId())) { SuggestUtil.deleteScrollContext(client, scrollId); } scrollId = response.getScrollId(); } } finally { SuggestUtil.deleteScrollContext(client, scrollId); } Arrays.sort(array, (o1, o2) -> {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 10.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java
SuggestUtil.deleteScrollContext(client, scrollId); } } scrollId = response.getScrollId(); final SearchHit[] hits = response.getHits().getHits(); if (scrollId == null || hits.length == 0) { SuggestUtil.deleteScrollContext(client, scrollId);
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 7.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SuggestHelper.java
import org.codelibs.fess.suggest.index.contents.document.ESSourceReader; import org.codelibs.fess.suggest.settings.SuggestSettings; import org.codelibs.fess.suggest.settings.SuggestSettingsBuilder; import org.codelibs.fess.suggest.util.SuggestUtil; import org.codelibs.fess.util.ComponentUtil; import org.opensearch.common.lucene.search.function.CombineFunction; import org.opensearch.index.query.BoolQueryBuilder; import org.opensearch.index.query.QueryBuilders;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 18.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java
final List<String> languages = SuggestUtil.getAsList(source.get(FieldNames.LANGUAGES)); final List<String> kinds = SuggestUtil.getAsList(source.get(FieldNames.KINDS)); final long timestamp = Long.parseLong(source.get(FieldNames.TIMESTAMP).toString()); final SuggestItem item = new SuggestItem(); item.text = text;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 20.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriter.java
import org.codelibs.fess.suggest.entity.SuggestItem; import org.codelibs.fess.suggest.exception.SuggestIndexException; import org.codelibs.fess.suggest.settings.SuggestSettings; import org.codelibs.fess.suggest.util.SuggestUtil; import org.opensearch.action.bulk.BulkItemResponse; import org.opensearch.action.bulk.BulkRequestBuilder; import org.opensearch.action.bulk.BulkResponse; import org.opensearch.action.get.GetResponse;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 4.2K bytes - Viewed (0)