Documentation of 'org.apache.lucene.demo.FileDocument' Java class
FileDocument
org.apache.lucene.demo

Class FileDocument



  • public class FileDocument
    extends java.lang.Object
    A utility for making Lucene Documents from a File.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static Document Document(java.io.File f)
      Makes a document for a File.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • Document

        public static Document Document(java.io.File f)
                                 throws java.io.FileNotFoundException
        Makes a document for a File.

        The document has three fields:

        • path--containing the pathname of the file, as a stored, untokenized field;
        • modified--containing the last modified date of the file as a field as created by DateTools; and
        • contents--containing the full contents of the file, as a Reader field;
        Throws:
        java.io.FileNotFoundException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.