Class LuceneField

java.lang.Object
net.ontopia.infoset.fulltext.impl.lucene.LuceneField
All Implemented Interfaces:
FieldIF

public class LuceneField extends Object implements FieldIF
INTERNAL: FieldIF wrapper for Lucene's own internal field class.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.lucene.index.IndexableField
     
  • Method Summary

    Modifier and Type
    Method
    Description
    INTERNAL: Returns the name of the field.
    INTERNAL: Returns the Reader value of the field.
    INTERNAL: Returns the String value of the field.
    boolean
    INTERNAL: Returns true if the field is to be indexed, so that it may be searched on.
    boolean
    INTERNAL: Returns true if the field is to be stored in the index for return with search hits.
    boolean
    INTERNAL: Returns true if the field is to be tokenized prior to indexing.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • field

      protected org.apache.lucene.index.IndexableField field
  • Method Details

    • getName

      public String getName()
      Description copied from interface: FieldIF
      INTERNAL: Returns the name of the field.
      Specified by:
      getName in interface FieldIF
    • getValue

      public String getValue()
      Description copied from interface: FieldIF
      INTERNAL: Returns the String value of the field. Note that null is returned if the field has a reader set.
      Specified by:
      getValue in interface FieldIF
    • getReader

      public Reader getReader()
      Description copied from interface: FieldIF
      INTERNAL: Returns the Reader value of the field. Note that null is returned if the field has a value set.
      Specified by:
      getReader in interface FieldIF
    • isStored

      public boolean isStored()
      Description copied from interface: FieldIF
      INTERNAL: Returns true if the field is to be stored in the index for return with search hits.
      Specified by:
      isStored in interface FieldIF
    • isIndexed

      public boolean isIndexed()
      Description copied from interface: FieldIF
      INTERNAL: Returns true if the field is to be indexed, so that it may be searched on.
      Specified by:
      isIndexed in interface FieldIF
    • isTokenized

      public boolean isTokenized()
      Description copied from interface: FieldIF
      INTERNAL: Returns true if the field is to be tokenized prior to indexing.
      Specified by:
      isTokenized in interface FieldIF
    • toString

      public String toString()
      Overrides:
      toString in class Object