Class Field


  • public class Field
    extends java.lang.Object
    Represents a document field which can be matched and ranked against.
    Author:
    bratseth
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Field.Term
      A term in a field
    • Constructor Summary

      Constructors 
      Constructor Description
      Field​(java.lang.String fieldString)
      Creates a field from a space-separated string
      Field​(java.util.List<Field.Term> terms)
      Creates a field from a list of terms
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Field.Term> terms()
      Returns an immutable list of the terms in this
      • Methods inherited from class java.lang.Object

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

      • Field

        public Field​(java.lang.String fieldString)
        Creates a field from a space-separated string
      • Field

        public Field​(java.util.List<Field.Term> terms)
        Creates a field from a list of terms
    • Method Detail

      • terms

        public java.util.List<Field.Term> terms()
        Returns an immutable list of the terms in this