Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SuggestUtil (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/main/java/org/codelibs/fess/suggest/settings/AnalyzerSettings.java

                    if (!scrollId.equals(response.getScrollId())) {
                        SuggestUtil.deleteScrollContext(client, scrollId);
                    }
                    scrollId = response.getScrollId();
                }
            } finally {
                SuggestUtil.deleteScrollContext(client, scrollId);
            }
            return mappingMap;
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top