Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for createDefaultNormalizer (0.11 sec)

  1. src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserTest.java

            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)
  2. src/test/java/org/codelibs/fess/suggest/normalizer/DefaultNormalizerTest.java

            runner.close();
            runner.clean();
        }
    
        @Test
        public void test_normalize() throws Exception {
            Normalizer normalizer = SuggestUtil.createDefaultNormalizer(runner.client(), suggester.settings());
            assertEquals("12345,.*[]「」abcケンサクabcdけんさくガギグゲゴ", normalizer.normalize("12345,.*[]「」ABCケンサクabcdけんさくガギグゲゴ", null));
        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/SuggesterBuilder.java

            } catch (final IOException e) {
                throw new SuggesterException(e);
            }
    
            if (normalizer == null) {
                normalizer = SuggestUtil.createDefaultNormalizer(client, settings);
            }
    
            if (analyzer == null) {
                analyzer = SuggestUtil.createDefaultAnalyzer(client, settings);
            }
    
            if (threadPool == null) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

            final ReadingConverterChain chain = new ReadingConverterChain();
            chain.addConverter(new KatakanaToAlphabetConverter());
            return chain;
        }
    
        public static Normalizer createDefaultNormalizer(final Client client, final SuggestSettings settings) {
            final NormalizerChain normalizerChain = new NormalizerChain();
            normalizerChain.add(new AnalyzerNormalizer(client, settings));
            /*
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top