Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for normalizeUrl (0.09 sec)

  1. src/main/java/org/codelibs/fess/suggest/normalizer/Normalizer.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.suggest.normalizer;
    
    public interface Normalizer {
        String normalize(String text, String field, String... langs);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 766 bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/normalizer/NormalizerChain.java

     */
    package org.codelibs.fess.suggest.normalizer;
    
    import java.util.ArrayList;
    import java.util.List;
    
    public class NormalizerChain implements Normalizer {
        List<Normalizer> normalizers = new ArrayList<>();
    
        @Override
        public String normalize(final String text, final String field, final String... langs) {
            String tmp = text;
            for (final Normalizer normalizer : normalizers) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/SuggesterBuilder.java

            this.contentsReadingConverter = contentsReadingConverter;
            return this;
        }
    
        public SuggesterBuilder normalizer(final Normalizer normalizer) {
            this.normalizer = normalizer;
            return this;
        }
    
        public SuggesterBuilder analyzer(final SuggestAnalyzer analyzer) {
            this.analyzer = analyzer;
            return this;
        }
    
    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/test/java/org/codelibs/fess/suggest/normalizer/ICUNormalizerTest.java

     */
    package org.codelibs.fess.suggest.normalizer;
    
    import junit.framework.TestCase;
    
    public class ICUNormalizerTest extends TestCase {
        public void test_FullwidthHalfwidth() {
            ICUNormalizer normalizer = new ICUNormalizer("Fullwidth-Halfwidth");
    
            assertEquals("abcd", normalizer.normalize("abcd", null));
            assertEquals("みかん", normalizer.normalize("みかん", null));
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/SuggesterBuilderTest.java

                    return null;
                }
            };
    
            final Normalizer normalizer = (text, field, lang) -> null;
    
            final Suggester suggester = Suggester.builder().settings(SuggestSettings.builder().setSettingsIndexName(settingsIndexName))
                    .readingConverter(converter).normalizer(normalizer).build(runner.client(), id);
    
            assertEquals(runner.client(), suggester.client);
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/ContentsParser.java

    import org.codelibs.fess.suggest.index.contents.querylog.QueryLog;
    import org.codelibs.fess.suggest.normalizer.Normalizer;
    
    public interface ContentsParser {
        SuggestItem parseSearchWords(String[] words, String[][] readings, String[] fields, String[] tags, String roles[], long score,
                ReadingConverter readingConverter, Normalizer normalizer, SuggestAnalyzer analyzer, String[] langs);
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java

            final Normalizer normalizer;
            if (langs == null || langs.length == 0) {
                normalizer = new LangAnalyzerNormalizer(null);
            } else {
                final NormalizerChain chain = new NormalizerChain();
                for (final String lang : langs) {
                    chain.add(new LangAnalyzerNormalizer(lang));
                }
                normalizer = chain;
            }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. 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)
  9. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequestBuilder.java

    import org.codelibs.fess.suggest.normalizer.Normalizer;
    import org.codelibs.fess.suggest.request.RequestBuilder;
    import org.opensearch.client.Client;
    
    public class SuggestRequestBuilder extends RequestBuilder<SuggestRequest, SuggestResponse> {
        public SuggestRequestBuilder(final Client client, final ReadingConverter readingConverter, final Normalizer normalizer) {
            super(client, new SuggestRequest());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserTest.java

    import org.codelibs.fess.suggest.entity.SuggestItem;
    import org.codelibs.fess.suggest.index.contents.querylog.QueryLog;
    import org.codelibs.fess.suggest.normalizer.Normalizer;
    import org.codelibs.fess.suggest.normalizer.NormalizerChain;
    
    import junit.framework.TestCase;
    
    public class DefaultContentsParserTest extends TestCase {
        DefaultContentsParser defaultContentsParser = new DefaultContentsParser();
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top