Home » lucene-3.0.1 » org.apache » lucene » demo » [javadoc | source]
org.apache.lucene.demo
public class: FileDocument [javadoc | source]
java.lang.Object
   org.apache.lucene.demo.FileDocument
A utility for making Lucene Documents from a File.
Method from org.apache.lucene.demo.FileDocument Summary:
Document
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.demo.FileDocument Detail:
 public static Document Document(File f) throws 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;