Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for SuggestItem (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. README.ja.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
    
    Elasticsearchにインデックスされているコンテンツを解析してサジェストドキュメントを生成します。
    
    ```java
    DocumentReader reader = new ESSourceReader(
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Jul 27 10:00:55 UTC 2015
    - 2.2K bytes
    - Viewed (0)
  8. 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)
  9. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                }
    
                builder.addKind(SuggestItem.Kind.USER.toString());
                if (ComponentUtil.getFessConfig().isSuggestSearchLog()) {
                    builder.addKind(SuggestItem.Kind.QUERY.toString());
                }
                if (ComponentUtil.getFessConfig().isSuggestDocuments()) {
                    builder.addKind(SuggestItem.Kind.DOCUMENT.toString());
                }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
Back to top