Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for parseWordList (0.07 sec)

  1. src/test/java/org/codelibs/opensearch/extension/analysis/PosConcatenationFilterFactory.java

                final Settings settings) {
            super(indexSettings, name, settings);
    
            final List<String> tagList = Analysis.parseWordList(environment, settings, "tags", s -> s);
            if (tagList != null) {
                posTags.addAll(tagList);
            }
        }
    
        @Override
        public TokenStream create(final TokenStream tokenStream) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/opensearch/extension/kuromoji/index/analysis/KuromojiPartOfSpeechFilterFactory.java

        public KuromojiPartOfSpeechFilterFactory(IndexSettings indexSettings, Environment env, String name, Settings settings) {
            super(indexSettings, name, settings);
            List<String> wordList = Analysis.parseWordList(env, settings, "stoptags", s -> s);
            if (wordList != null) {
                stopTags.addAll(wordList);
            } else {
                stopTags.addAll(JapaneseAnalyzer.getDefaultStopTags());
            }
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/opensearch/extension/analysis/StopTokenPrefixFilterFactory.java

                final Settings settings) {
            super(indexSettings, name, settings);
    
            final List<String> wordList = Analysis.parseWordList(environment, settings, "stopwords", s -> s);
            if (wordList != null) {
                stopwords = wordList.toArray(new String[wordList.size()]);
            } else {
                stopwords = new String[0];
            }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/opensearch/extension/analysis/StopTokenSuffixFilterFactory.java

                final Settings settings) {
            super(indexSettings, name, settings);
    
            final List<String> wordList = Analysis.parseWordList(environment, settings, "stopwords", s -> s);
            if (wordList != null) {
                stopwords = wordList.toArray(new String[wordList.size()]);
            } else {
                stopwords = new String[0];
            }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/opensearch/extension/kuromoji/index/analysis/KuromojiTokenizerFactory.java

            }
            try {
                Set<String> dup = new HashSet<>();
                List<String> ruleList =
                        Analysis.parseWordList(env, settings, USER_DICT_PATH_OPTION, USER_DICT_RULES_OPTION, s -> parse(s, dup));
                if (ruleList == null || ruleList.isEmpty()) {
                    return null;
                }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/opensearch/extension/analysis/SynonymLoader.java

            }
    
            Reader reader = null;
            if (settings.getAsList("synonyms", null) != null) {
                final List<String> rules = Analysis.parseWordList(env, settings, "synonyms", s -> s);
                final StringBuilder sb = new StringBuilder();
                for (final String line : rules) {
                    sb.append(line).append(System.getProperty("line.separator"));
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top