Class Field.Term

  • Enclosing class:
    Field

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)
      java.lang.String value()
      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 Detail

      • Term

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

        public Term​(java.lang.String value,
                    float exactness)
    • Method Detail

      • value

        public java.lang.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)