- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for SuggestItem (0.06 sec)
-
src/main/java/org/codelibs/fess/suggest/index/writer/SuggestWriter.java
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 2.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserTest.java
QueryLog queryLog = new QueryLog("content:検索エンジン", null); List<SuggestItem> items = defaultContentsParser.parseQueryLog(queryLog, supportedFields, tagFieldNames, roleFieldName, createDefaultReadingConverter(), createDefaultNormalizer()); SuggestItem item = items.get(0); assertEquals("検索エンジン", item.getText()); assertEquals(SuggestItem.Kind.QUERY, item.getKinds()[0]); assertEquals(1, item.getQueryFreq());
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestResponse.java
import org.codelibs.fess.suggest.entity.SuggestItem; 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/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsResponse.java
import org.codelibs.fess.suggest.entity.SuggestItem; import org.codelibs.fess.suggest.request.Response; public class PopularWordsResponse 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/main/java/org/codelibs/fess/suggest/index/contents/ContentsParser.java
import org.codelibs.fess.suggest.converter.ReadingConverter; import org.codelibs.fess.suggest.entity.SuggestItem; import org.codelibs.fess.suggest.index.contents.querylog.QueryLog; import org.codelibs.fess.suggest.normalizer.Normalizer; public interface ContentsParser { SuggestItem parseSearchWords(String[] words, String[][] readings, String[] fields, String[] tags, String roles[], long score,
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriter.java
final boolean update) { final BulkRequestBuilder bulkRequestBuilder = client.prepareBulk(); final SuggestItem[] mergedItems = mergeItems(items); if (mergedItems.length == 0) { return new SuggestWriterResult(); } for (final SuggestItem item : mergedItems) {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 4.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/entity/ElevateWord.java
} public List<String> getRoles() { return roles; } public SuggestItem toSuggestItem() { final String[][] readingArray = this.getReadings().stream().map(reading -> new String[] { reading }).toArray(count -> new String[count][]); return new SuggestItem(new String[] { this.getElevateWord() }, readingArray, fields.toArray(new String[fields.size()]), 1, 0,
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/writer/SuggestBulkFileWriter.java
import org.codelibs.fess.suggest.entity.SuggestItem; import org.codelibs.fess.suggest.settings.SuggestSettings; import org.opensearch.client.Client; import org.opensearch.index.query.QueryBuilder; public class SuggestBulkFileWriter implements SuggestWriter { @Override public SuggestWriterResult write(final Client client, final SuggestSettings settings, final String index, final SuggestItem[] items, final boolean update) {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java
import org.codelibs.fess.suggest.concurrent.Deferred; import org.codelibs.fess.suggest.constants.FieldNames; import org.codelibs.fess.suggest.constants.SuggestConstants; import org.codelibs.fess.suggest.entity.SuggestItem; import org.codelibs.fess.suggest.exception.SuggesterException; import org.codelibs.fess.suggest.request.Request; import org.opensearch.action.search.SearchRequestBuilder; import org.opensearch.action.search.SearchResponse;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 7K bytes - Viewed (0) -
README.md
readings[1] = new String[] { "enjin", "fuga" }; String[] tags = new String[] { "tag1", "tag2" }; String[] roles = new String[] { "role1", "role2", "role3" }; suggester.indexer().index(new SuggestItem(new String[] { "検索", "エンジン" }, readings, 1, tags, roles, SuggestItem.Kind.DOCUMENT)); ``` ### Add suggest documents from source of index ```java DocumentReader reader = new ESSourceReader( client, suggester.settings(),
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Jan 19 03:33:49 UTC 2023 - 1.4K bytes - Viewed (0)