public final class WordDocument extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.document.Document |
getDocument(Resource res)
Makes a document for a File.
|
static org.apache.lucene.document.Document |
getDocument(StringBuffer content,
InputStream is) |
public static org.apache.lucene.document.Document getDocument(Resource res) throws IOException
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;res
- IOException
public static org.apache.lucene.document.Document getDocument(StringBuffer content, InputStream is) throws IOException
IOException
Copyright © 2015 Lucee