com.xpn.xwiki.plugin.lucene
Class IndexFields

java.lang.Object
  extended by com.xpn.xwiki.plugin.lucene.IndexFields

public abstract class IndexFields
extends Object

Contains constants naming the Lucene index fields used by this Plugin and some helper methods for proper handling of special field values like dates.

Version:
$Id$

Field Summary
static String DATE_FORMAT
          Format for date storage in the index, and therefore the format which has to be used for date-queries.
static String DOCUMENT_AUTHOR
          Last modifier
static String DOCUMENT_CREATIONDATE
          Date of creation
static String DOCUMENT_CREATOR
          Creator of the document
static String DOCUMENT_DATE
          Date of last modification
static String DOCUMENT_FULLNAME
          FullName of the document (example : Main.WebHome)
static String DOCUMENT_ID
          Keyword field, holds a string uniquely identifying a document across the index.
static String DOCUMENT_LANGUAGE
          Language of the document
static String DOCUMENT_NAME
          Name of the document
static String DOCUMENT_SPACE
          Name of the space the document belongs to
static String DOCUMENT_TITLE
          Title of the document
static String DOCUMENT_TYPE
          Type of a document, "attachment", "wikipage" or "objects", used to control presentation of searchresults.
static String DOCUMENT_VERSION
          Version of the document
static String DOCUMENT_WEB
          Deprecated. 
static String DOCUMENT_WIKI
          Keyword field, holds the name of the virtual wiki a document belongs to
static String FILENAME
          Filename, only used for attachments
static String FULLTEXT
          Fulltext content, not stored (and can therefore not be restored from the index).
static String KEYWORDS
          not in use
static String OBJECT
          XWiki object type, only used for objects
 
Method Summary
static String dateToString(Date date)
           
static Date stringToDate(String dateValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_ID

public static final String DOCUMENT_ID
Keyword field, holds a string uniquely identifying a document across the index. this is used for finding old versions of a document to be indexed.

See Also:
Constant Field Values

DOCUMENT_WIKI

public static final String DOCUMENT_WIKI
Keyword field, holds the name of the virtual wiki a document belongs to

See Also:
Constant Field Values

DOCUMENT_TITLE

public static final String DOCUMENT_TITLE
Title of the document

See Also:
Constant Field Values

DOCUMENT_NAME

public static final String DOCUMENT_NAME
Name of the document

See Also:
Constant Field Values

DOCUMENT_WEB

@Deprecated
public static final String DOCUMENT_WEB
Deprecated. 
Name of the web the document belongs to

See Also:
Constant Field Values

DOCUMENT_SPACE

public static final String DOCUMENT_SPACE
Name of the space the document belongs to

See Also:
Constant Field Values

DOCUMENT_FULLNAME

public static final String DOCUMENT_FULLNAME
FullName of the document (example : Main.WebHome)

See Also:
Constant Field Values

DOCUMENT_VERSION

public static final String DOCUMENT_VERSION
Version of the document

See Also:
Constant Field Values

DOCUMENT_LANGUAGE

public static final String DOCUMENT_LANGUAGE
Language of the document

See Also:
Constant Field Values

DOCUMENT_TYPE

public static final String DOCUMENT_TYPE
Type of a document, "attachment", "wikipage" or "objects", used to control presentation of searchresults. See SearchResultand xdocs/searchResult.vm.

See Also:
Constant Field Values

FILENAME

public static final String FILENAME
Filename, only used for attachments

See Also:
Constant Field Values

OBJECT

public static final String OBJECT
XWiki object type, only used for objects

See Also:
Constant Field Values

DOCUMENT_AUTHOR

public static final String DOCUMENT_AUTHOR
Last modifier

See Also:
Constant Field Values

DOCUMENT_CREATOR

public static final String DOCUMENT_CREATOR
Creator of the document

See Also:
Constant Field Values

DOCUMENT_DATE

public static final String DOCUMENT_DATE
Date of last modification

See Also:
Constant Field Values

DOCUMENT_CREATIONDATE

public static final String DOCUMENT_CREATIONDATE
Date of creation

See Also:
Constant Field Values

FULLTEXT

public static final String FULLTEXT
Fulltext content, not stored (and can therefore not be restored from the index).

See Also:
Constant Field Values

KEYWORDS

public static final String KEYWORDS
not in use

See Also:
Constant Field Values

DATE_FORMAT

public static final String DATE_FORMAT
Format for date storage in the index, and therefore the format which has to be used for date-queries.

See Also:
Constant Field Values
Method Detail

dateToString

public static final String dateToString(Date date)

stringToDate

public static final Date stringToDate(String dateValue)


Copyright © 2004-2011 XWiki. All Rights Reserved.