java.lang.Object
com.yahoo.searchlib.ranking.features.fieldmatch.Field.Term
Enclosing class:
Field

public static class Field.Term extends Object
A term in a field
  • Constructor Summary

    Constructors
    Constructor
    Description
    Term(String value)
    Creates a term with the given value and full exactness (1.0)
    Term(String value, float exactness)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the degree to which this term is exactly what was in the document (1.0), or some stemmed form (closer to 0)
    Returns the string value of this term

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Term

      public Term(String value)
      Creates a term with the given value and full exactness (1.0)
    • Term

      public Term(String value, float exactness)
  • Method Details

    • value

      public String value()
      Returns the string value of this term
    • exactness

      public float exactness()
      Returns the degree to which this term is exactly what was in the document (1.0), or some stemmed form (closer to 0)