railo.runtime.search.lucene2.docs
Class PlainDocument
java.lang.Object
railo.runtime.search.lucene2.docs.PlainDocument
public final class PlainDocument
- extends Object
A utility for making Lucene Documents from a File.
Method Summary |
static org.apache.lucene.document.Document |
Document(Resource f,
String charset)
Makes a document for a File. |
Document
public static org.apache.lucene.document.Document Document(Resource f,
String charset)
throws IOException
- Makes a document for a File.
The document has three fields:
path
--containing the pathname of the file, as a stored,
tokenized field;
modified
--containing the last modified date of the file as
a keyword field as encoded by DateField; and
contents
--containing the full contents of the file, as a
Reader field;
- Parameters:
f
-
- Returns:
- matching document
- Throws:
IOException
Copyright © 2012 Railo