Class PhraseBoostFeature

    • Constructor Detail

      • PhraseBoostFeature

        public PhraseBoostFeature​(java.lang.String name)
    • Method Detail

      • getScope

        public java.lang.String getScope()
      • setScope

        public void setScope​(java.lang.String value)
      • getMinimum

        public int getMinimum()
      • setMinimum

        public void setMinimum​(int value)
      • getDistance

        public int getDistance()
      • setDistance

        public void setDistance​(int value)
      • isOrdered

        public boolean isOrdered()
      • setOrdered

        public void setOrdered​(boolean value)
      • isCompleteness

        public boolean isCompleteness()
      • setCompleteness

        public void setCompleteness​(boolean value)
      • isExactMatch

        @Deprecated
        public boolean isExactMatch()
        Deprecated.
      • setExactMatch

        @Deprecated
        public void setExactMatch​(boolean value)
        Deprecated.
      • addScopeBoost

        public void addScopeBoost​(PhraseBoostFeature.ScopeBoost value)
        Add a scope boost.

        EXPERIMENTAL: Scope boosts are currently experimental and may change and/or be removed in the future.

      • getScopeBoosts

        public java.util.List<PhraseBoostFeature.ScopeBoost> getScopeBoosts()
        Get all scope boosts.

        EXPERIMENTAL: Scope boosts are currently experimental and may change and/or be removed in the future.

      • setScopeBoosts

        public void setScopeBoosts​(java.util.List<PhraseBoostFeature.ScopeBoost> value)
        Set the scope boosts.

        EXPERIMENTAL: Scope boosts are currently experimental and may change and/or be removed in the future.

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
      • equals

        public boolean equals​(java.lang.Object other)
      • getField

        public java.lang.String getField()
      • setField

        public void setField​(java.lang.String value)
      • getSourceFields

        public java.util.Set<java.lang.String> getSourceFields()
      • setSourceFields

        public void setSourceFields​(java.util.Set<java.lang.String> value)
      • setSourceFields

        public void setSourceFields​(java.lang.String... value)
      • getScoreMode

        public ScoreMode getScoreMode()
      • setScoreMode

        public void setScoreMode​(ScoreMode value)