Class SimpleFileIndexingServiceDocReader

All Implemented Interfaces:
Serializable

public class SimpleFileIndexingServiceDocReader extends FileIndexingServiceDocReader implements Serializable
A bean meant for subclassing that provides a basic implementataion of the FileIndexingServiceDocReader interface.
Author:
John Weatherley
See Also:
  • Constructor Details

    • SimpleFileIndexingServiceDocReader

      public SimpleFileIndexingServiceDocReader()
      Constructor for the SimpleFileIndexingServiceDocReader object
    • SimpleFileIndexingServiceDocReader

      public SimpleFileIndexingServiceDocReader(org.apache.lucene.document.Document doc)
      Constructor that may be used programatically to wrap a reader around a Lucene Document that was created by a FileIndexingServiceWriter.
      Parameters:
      doc - A Lucene Document.
      See Also:
  • Method Details

    • init

      public void init()
      Init method does nothing.
      Specified by:
      init in class DocReader
    • getReaderType

      public String getReaderType()
      Gets the String 'ItemDocReader,' which is the key that describes this reader type. This may be used in (Struts) beans to determine which type of reader is available for a given search result and thus what data is available for display in the UI. The reader type determines which getter methods are available.
      Specified by:
      getReaderType in class DocReader
      Returns:
      The String 'ItemDocReader'.