com.binaryfantasy.murq.search
Class ContentDocument

java.lang.Object
  extended by com.binaryfantasy.murq.search.ContentDocument

public class ContentDocument
extends Object

A utility for converting IContent objects into Lucene Documents for indexing.

FOR INTERNAL USE ONLY.

Author:
Bill Weiss

Field Summary
static String CLASS_FIELD
          The index field holding content object class names.
static String CONTENT_ID_FIELD
          The index field holding content id.
static String DATE_CREATED_FIELD
          The index field holding the content object creation date.
static String DATE_MODIFIED_FIELD
          The index field holding the content object last modified date.
static String DEFAULT_FIELD
          The index field holding default searchable content text.
static String LOCALE_FIELD
          The index field holding content object locale.
static String SOURCE_KEY_FIELD
          The index field holding source keys.
 
Method Summary
static org.apache.lucene.document.Document create(IContent content)
          Creates a new Lucene Document representing the content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_ID_FIELD

public static final String CONTENT_ID_FIELD
The index field holding content id.

See Also:
Constant Field Values

SOURCE_KEY_FIELD

public static final String SOURCE_KEY_FIELD
The index field holding source keys.

See Also:
Constant Field Values

CLASS_FIELD

public static final String CLASS_FIELD
The index field holding content object class names.

See Also:
Constant Field Values

LOCALE_FIELD

public static final String LOCALE_FIELD
The index field holding content object locale.

See Also:
Constant Field Values

DATE_CREATED_FIELD

public static final String DATE_CREATED_FIELD
The index field holding the content object creation date.

See Also:
Constant Field Values

DATE_MODIFIED_FIELD

public static final String DATE_MODIFIED_FIELD
The index field holding the content object last modified date.

See Also:
Constant Field Values

DEFAULT_FIELD

public static final String DEFAULT_FIELD
The index field holding default searchable content text.

See Also:
Constant Field Values
Method Detail

create

public static org.apache.lucene.document.Document create(IContent content)
Creates a new Lucene Document representing the content.

Parameters:
content - to have a Document created for, and indexed.
Returns:
Document representing the content.


Copyright (c) 2000-2006, BinaryFantasy.com