Class DoubleMetaphoneFilterFactory


  • public class DoubleMetaphoneFilterFactory
    extends TokenFilterFactory
    Factory for DoubleMetaphoneFilter.
     <fieldType name="text_dblmtphn" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
         <filter class="solr.DoubleMetaphoneFilterFactory" inject="true" maxCodeLength="4"/>
       </analyzer>
     </fieldType>
    Since:
    3.1
    • Field Detail

      • INJECT

        public static final java.lang.String INJECT
        parameter name: true if encoded tokens should be added as synonyms
        See Also:
        Constant Field Values
      • MAX_CODE_LENGTH

        public static final java.lang.String MAX_CODE_LENGTH
        parameter name: restricts the length of the phonetic code
        See Also:
        Constant Field Values
      • DEFAULT_MAX_CODE_LENGTH

        public static final int DEFAULT_MAX_CODE_LENGTH
        default maxCodeLength if not specified
        See Also:
        Constant Field Values
      • inject

        private final boolean inject
      • maxCodeLength

        private final int maxCodeLength
    • Constructor Detail

      • DoubleMetaphoneFilterFactory

        public DoubleMetaphoneFilterFactory​(java.util.Map<java.lang.String,​java.lang.String> args)
        Creates a new DoubleMetaphoneFilterFactory