Class SimpleDocReader

java.lang.Object
org.dlese.dpc.index.reader.DocReader
org.dlese.dpc.index.reader.SimpleDocReader

public class SimpleDocReader extends DocReader
A bean that provides a simple implementataion of the DocReader interface. This DocReader is used when no other is available.
Author:
John Weatherley
  • Constructor Details

    • SimpleDocReader

      public SimpleDocReader()
      Constructor for the SimpleDocReader object
    • SimpleDocReader

      public SimpleDocReader(org.apache.lucene.document.Document doc)
      Constructor that may be used programatically to wrap a reader around a Lucene Document created by a DocWriter. Sets the score to 0.
      Parameters:
      doc - A Lucene Document created by a DocWriter.
  • Method Details

    • init

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

      public String getReaderType()
      Gets a String describing the 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 implies which getter methods are available.
      Specified by:
      getReaderType in class DocReader
      Returns:
      The readerType value.