Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NGramSynonymTokenizer (0.18 sec)

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

    import org.apache.lucene.util.CharsRef;
    import org.apache.lucene.util.UnicodeUtil;
    import org.apache.lucene.util.fst.FST;
    
    // https://issues.apache.org/jira/browse/LUCENE-5252
    public final class NGramSynonymTokenizer extends Tokenizer {
    
        public static final int DEFAULT_N_SIZE = 2;
    
        public static final String DEFAULT_DELIMITERS = "  \t\n\r";
    
        static final int BUFFER_SIZE = 4096;
    
        private final int n;
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizerFactory.java

            super(indexSettings, settings, name);
            ignoreCase = settings.getAsBoolean("ignore_case", true);
            n = settings.getAsInt("n", NGramSynonymTokenizer.DEFAULT_N_SIZE);
            delimiters = settings.get("delimiters", NGramSynonymTokenizer.DEFAULT_DELIMITERS);
            expand = settings.getAsBoolean("expand", true);
    
            settings.getAsBoolean("expand_ngram", false); // TODO remove
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top