- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for SuggestItem (0.07 sec)
-
src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java
} return list.toArray(new Kind[list.size()]); } public static SuggestItem merge(final SuggestItem item1, final SuggestItem item2) { if (!item1.getId().equals(item2.getId())) { throw new IllegalArgumentException("Item id is mismatch."); } final SuggestItem mergedItem = new SuggestItem(); mergedItem.id = item1.getId(); mergedItem.text = item1.getText();
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/SuggestIndexer.java
public SuggestIndexResponse index(final SuggestItem item) { return index(new SuggestItem[] { item }); } // TODO return result public SuggestIndexResponse index(final SuggestItem[] items) { // TODO parallel? final SuggestItem[] array = Stream.of(items).filter(item -> !item.isBadWord(badWords)).toArray(n -> new SuggestItem[n]); try {
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/test/java/org/codelibs/fess/suggest/SuggesterTest.java
items.add(new SuggestItem(new String[] { "マルチワード" + i, "fuga" }, readings, new String[] { "content" }, 0, 15 + i, -1, tags, roles, null, SuggestItem.Kind.QUERY)); } return items.toArray(new SuggestItem[items.size()]); } private SuggestItem[] getItemSet2() { List<SuggestItem> items = new ArrayList<>(); {
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/index/contents/DefaultContentsParser.java
items.add(new SuggestItem(words, readings, new String[] { field }, 0, 1, -1, tags, roles, null, SuggestItem.Kind.QUERY)); } } catch (final IOException e) { throw new SuggesterException("Failed to create SuggestItem from queryLog.", e); } return items; } @Override
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/main/java/org/codelibs/fess/helper/SuggestHelper.java
boolQueryBuilder.must(QueryBuilders.termQuery(FieldNames.KINDS, SuggestItem.Kind.DOCUMENT.toString())); boolQueryBuilder.mustNot(QueryBuilders.termQuery(FieldNames.KINDS, SuggestItem.Kind.QUERY.toString())); boolQueryBuilder.mustNot(QueryBuilders.termQuery(FieldNames.KINDS, SuggestItem.Kind.USER.toString()));
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/request/suggest/SuggestRequest.java
final List<String> words = new ArrayList<>(); final List<String> firstWords = new ArrayList<>(); final List<String> secondWords = new ArrayList<>(); final List<SuggestItem> firstItems = new ArrayList<>(); final List<SuggestItem> secondItems = new ArrayList<>(); final String index; if (hits.length > 0) { index = hits[0].getIndex(); } else {
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/suggest/util/SuggestUtil.java
import org.codelibs.fess.suggest.converter.ReadingConverter; import org.codelibs.fess.suggest.converter.ReadingConverterChain; import org.codelibs.fess.suggest.entity.SuggestItem; import org.codelibs.fess.suggest.exception.SuggesterException; import org.codelibs.fess.suggest.normalizer.AnalyzerNormalizer; import org.codelibs.fess.suggest.normalizer.Normalizer;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 11.7K bytes - Viewed (0)