|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.util.search.DocumentFactory
public class DocumentFactory
A factory for creating Lucene Documents based on file system contents.
| Field Summary | |
|---|---|
static String |
FIELD_CONTENT
The token identifier for the Document content field. |
static String |
FIELD_MODIFIED
The token identifier for the Document modification date field. |
static String |
FIELD_SYSTEMID
The token identifier for the Document system identifier (path) field. |
static String |
FIELD_TITLE
The token identifier for the Document title field. |
| Constructor Summary | |
|---|---|
protected |
DocumentFactory()
|
| Method Summary | |
|---|---|
static org.apache.lucene.document.Document |
createDocument(File file)
Creates a Document for a File. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FIELD_TITLE
public static final String FIELD_CONTENT
public static final String FIELD_SYSTEMID
public static final String FIELD_MODIFIED
| Constructor Detail |
|---|
protected DocumentFactory()
| Method Detail |
|---|
public static org.apache.lucene.document.Document createDocument(File file)
throws SearchException
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
DateTools; and
content--containing the full contents of the file, as
a Reader field;
SearchException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||