|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.util.search.DocumentFactory
org.ceryle.xnode.search.XNodeDocumentFactory
public class XNodeDocumentFactory
A utility for making Lucene Documents for XNode documents, which
may contain text, wiki, HTML, XHTML or other document formats.
This extends DocumentFactory only
in order to inherit some common fields.
| Field Summary | |
|---|---|
static String |
FIELD_COLLECTION
The token identifier for the XNode's parent collection ID. |
static String |
FIELD_CONTRIBUTOR
The token identifier for the XNode contributor field. |
static String |
FIELD_CREATED
The token identifier for the XNode created date field. |
static String |
FIELD_CREATOR
The token identifier for the XNode creator field. |
static String |
FIELD_DESCRIPTION
The token identifier for the XNode description field. |
static String |
FIELD_SUBJECT
The token identifier for the XNode subject field. |
static String |
FIELD_UID
The token identifier for the XNode UID field (used by the search engine). |
| Fields inherited from class org.ceryle.util.search.DocumentFactory |
|---|
FIELD_CONTENT, FIELD_MODIFIED, FIELD_SYSTEMID, FIELD_TITLE |
| Method Summary | |
|---|---|
static org.apache.lucene.document.Document |
createDocument(String cid,
XNode xnode)
Creates a Lucene Document provided with a Collection ID and an XNode. |
static String |
getCreatedDate(XNode xnode)
Returns a 'created' date as a lexicographically-significant String (not the XNode timestamp format). |
static String |
getLastModifiedDate(XNode xnode)
Returns a 'last modified' date as a lexicographically-significant String (not the XNode timestamp format). |
static String |
uid(String cid,
String nid,
String lastmod)
Append Collection and Node IDs and the modification date into a String in such a way that lexicographic sorting gives the same results as a walk of the database hierarchy. |
| Methods inherited from class org.ceryle.util.search.DocumentFactory |
|---|
createDocument |
| 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_CREATOR
public static final String FIELD_CONTRIBUTOR
public static final String FIELD_COLLECTION
public static final String FIELD_CREATED
public static final String FIELD_UID
public static final String FIELD_SUBJECT
public static final String FIELD_DESCRIPTION
| Method Detail |
|---|
public static String uid(String cid,
String nid,
String lastmod)
public static org.apache.lucene.document.Document createDocument(String cid,
XNode xnode)
throws XNodeException,
InterruptedException
XNodeException
InterruptedExceptionpublic static String getCreatedDate(XNode xnode)
public static String getLastModifiedDate(XNode xnode)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||