org.apache.jackrabbit.core.query.lucene
Class FieldNames

java.lang.Object
  extended byorg.apache.jackrabbit.core.query.lucene.FieldNames

public class FieldNames
extends Object

Defines field names that are used internally to store UUID, etc in the search index.


Field Summary
static String FULLTEXT
          Name of the field that contains the fulltext index including terms from all properties of a node.
static String FULLTEXT_PREFIX
          Prefix for all field names that are fulltext indexed by property name.
static String LABEL
          Name of the field that contains the label of the node.
static String MVP
          Name of the field that contains the names of multi-valued properties that hold more than one value.
static String PARENT
          Name of the field that contains the UUID of the parent node.
static String PROPERTIES
          Name of the field that contains all values of properties that are indexed as is without tokenizing.
static String UUID
          Name of the field that contains the UUID of the node.
 
Method Summary
static String createNamedValue(String fieldName, String value)
          Returns a named value for use as a term in the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UUID

public static final String UUID
Name of the field that contains the UUID of the node. Terms are stored but not tokenized.


FULLTEXT

public static final String FULLTEXT
Name of the field that contains the fulltext index including terms from all properties of a node. Terms are tokenized.


FULLTEXT_PREFIX

public static final String FULLTEXT_PREFIX
Prefix for all field names that are fulltext indexed by property name.

See Also:
Constant Field Values

PARENT

public static final String PARENT
Name of the field that contains the UUID of the parent node. Terms are stored and but not tokenized.


LABEL

public static final String LABEL
Name of the field that contains the label of the node. Terms are not tokenized.


MVP

public static final String MVP
Name of the field that contains the names of multi-valued properties that hold more than one value. Terms are not tokenized and not stored, only indexed.


PROPERTIES

public static final String PROPERTIES
Name of the field that contains all values of properties that are indexed as is without tokenizing. Terms are prefixed with the property name.

Method Detail

createNamedValue

public static String createNamedValue(String fieldName,
                                      String value)
Returns a named value for use as a term in the index. The named value is of the form: fieldName + '?' + value

Parameters:
fieldName - the field name.
value - the value.
Returns:
value prefixed with field name.


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.