Class RewriterConstants


  • public class RewriterConstants
    extends java.lang.Object
    Contains common constant strings used by rewriters
    Author:
    Karen Sze Wing Lee
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_DICT_DIR
      Default dictionaries dir
      static java.lang.String DICT_KEY
      Name for new dictionary key field retrieval from query properties
      static java.lang.String EXPANSION_INDEX
      Config flag for expansion index name
      static java.lang.String MAX_REWRITES
      Config flag for max number of rewrites added per rewriter
      static java.lang.String ORIGINAL_AS_UNIT
      Config flag for addUnitToOriginalQuery
      static java.lang.String ORIGINAL_AS_UNIT_EQUIV
      Config flag for addUnitEquivToOriginalQuery
      static java.lang.String PARTIAL_PHRASE_MATCH
      Config flag for addExpansions
      static java.lang.String QSS_RW
      Config flag for considering QSS Rewrite in spell correction
      static java.lang.String QSS_SUGG
      Config flag for considering QSS Suggest in spell correction
      static com.yahoo.processing.request.CompoundName REWRITE_META
      Name for rewrite metadata retrieval from query properties
      static java.lang.String REWRITER_CHAIN
      Name for market chain retrieval from user param
      static java.lang.String REWRITES_AS_EQUIV
      Config flag for addRewritesAsEquiv(false)
      static java.lang.String REWRITES_AS_UNIT_EQUIV
      Config flag for addRewritesAsEquiv(true)
      static java.lang.String REWRITTEN
      Name for rewritten field retrieval from query properties
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ORIGINAL_AS_UNIT

        public static final java.lang.String ORIGINAL_AS_UNIT
        Config flag for addUnitToOriginalQuery
        See Also:
        Constant Field Values
      • ORIGINAL_AS_UNIT_EQUIV

        public static final java.lang.String ORIGINAL_AS_UNIT_EQUIV
        Config flag for addUnitEquivToOriginalQuery
        See Also:
        Constant Field Values
      • REWRITES_AS_EQUIV

        public static final java.lang.String REWRITES_AS_EQUIV
        Config flag for addRewritesAsEquiv(false)
        See Also:
        Constant Field Values
      • REWRITES_AS_UNIT_EQUIV

        public static final java.lang.String REWRITES_AS_UNIT_EQUIV
        Config flag for addRewritesAsEquiv(true)
        See Also:
        Constant Field Values
      • PARTIAL_PHRASE_MATCH

        public static final java.lang.String PARTIAL_PHRASE_MATCH
        Config flag for addExpansions
        See Also:
        Constant Field Values
      • MAX_REWRITES

        public static final java.lang.String MAX_REWRITES
        Config flag for max number of rewrites added per rewriter
        See Also:
        Constant Field Values
      • QSS_RW

        public static final java.lang.String QSS_RW
        Config flag for considering QSS Rewrite in spell correction
        See Also:
        Constant Field Values
      • QSS_SUGG

        public static final java.lang.String QSS_SUGG
        Config flag for considering QSS Suggest in spell correction
        See Also:
        Constant Field Values
      • EXPANSION_INDEX

        public static final java.lang.String EXPANSION_INDEX
        Config flag for expansion index name
        See Also:
        Constant Field Values
      • REWRITER_CHAIN

        public static final java.lang.String REWRITER_CHAIN
        Name for market chain retrieval from user param
        See Also:
        Constant Field Values
      • REWRITE_META

        public static final com.yahoo.processing.request.CompoundName REWRITE_META
        Name for rewrite metadata retrieval from query properties
      • REWRITTEN

        public static final java.lang.String REWRITTEN
        Name for rewritten field retrieval from query properties
        See Also:
        Constant Field Values
      • DICT_KEY

        public static final java.lang.String DICT_KEY
        Name for new dictionary key field retrieval from query properties
        See Also:
        Constant Field Values
      • DEFAULT_DICT_DIR

        public static final java.lang.String DEFAULT_DICT_DIR
        Default dictionaries dir
    • Constructor Detail

      • RewriterConstants

        public RewriterConstants()