Class FieldNames
- java.lang.Object
-
- org.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
Fields Modifier and Type Field Description static StringAGGREGATED_NODE_UUIDName of the field that contains the UUIDs of the aggregated nodes.static StringFULLTEXTName of the field that contains the fulltext index including terms from all properties of a node.static StringFULLTEXT_PREFIXPrefix for all field names that are fulltext indexed by property name.static StringLABELName of the field that contains the label of the node.static StringLOCAL_NAMEName of the field that contains the local name of the node.static StringMVPName of the field that contains the names of multi-valued properties that hold more than one value.static StringNAMESPACE_URIName of the field that contains the namespace URI of the node name.static StringPARENTName of the field that contains the UUID of the parent node.static StringPROPERTIESName of the field that contains all values of properties that are indexed as is without tokenizing.static StringPROPERTIES_SETName of the field that contains the names of all properties that are set on an indexed node.static StringPROPERTY_LENGTHSName of the field that contains the lengths of properties.static StringREINDEXING_REQUIREDName of the field that marks nodes that require reindexing because the text extraction process timed out.static StringSHAREABLE_NODEName of the field that marks shareable nodes.static StringUUIDName of the field that contains the UUID of the node.static StringWEAK_REFSName of the field that contains all weak reference property values.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcreateNamedLength(String propertyName, long length)Returns a named length for use as a term in the index.static StringcreateNamedValue(String fieldName, String value)Returns a named value for use as a term in the index.static intgetNameLength(String namedValue)Returns the length of the field prefix innamedValue.static booleanisFulltextField(String fieldName)Returnstrueif the givenfieldNamedenotes a fulltext field likeFULLTEXTor a field with aFULLTEXT_PREFIX.
-
-
-
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.
-
LOCAL_NAME
public static final String LOCAL_NAME
Name of the field that contains the local name of the node. Terms are not tokenized.
-
NAMESPACE_URI
public static final String NAMESPACE_URI
Name of the field that contains the namespace URI of the node name. 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.
-
PROPERTIES_SET
public static final String PROPERTIES_SET
Name of the field that contains the names of all properties that are set on an indexed node.
-
AGGREGATED_NODE_UUID
public static final String AGGREGATED_NODE_UUID
Name of the field that contains the UUIDs of the aggregated nodes. The terms are not tokenized and not stored, only indexed.
-
PROPERTY_LENGTHS
public static final String PROPERTY_LENGTHS
Name of the field that contains the lengths of properties. The lengths are encoded usingcreateNamedLength(String, long).
-
REINDEXING_REQUIRED
public static final String REINDEXING_REQUIRED
Name of the field that marks nodes that require reindexing because the text extraction process timed out. See alsoIndexingQueue.
-
SHAREABLE_NODE
public static final String SHAREABLE_NODE
Name of the field that marks shareable nodes.
-
WEAK_REFS
public static final String WEAK_REFS
Name of the field that contains all weak reference property values.
-
-
Method Detail
-
createNamedLength
public static String createNamedLength(String propertyName, long length)
Returns a named length for use as a term in the index. The named length is of the form:propertyName+ '[' +LongField.longToString(long).- Parameters:
propertyName- a property name.length- the length of the property value.- Returns:
- the named length string for use as a term in the index.
-
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.
-
getNameLength
public static int getNameLength(String namedValue)
Returns the length of the field prefix innamedValue. See alsocreateNamedValue(String, String). IfnamedValuedoes not contain a name prefix, this method return 0.- Parameters:
namedValue- the named value as created bycreateNamedValue(String, String).- Returns:
- the length of the field prefix including the separator char '['.
-
isFulltextField
public static boolean isFulltextField(String fieldName)
Returnstrueif the givenfieldNamedenotes a fulltext field likeFULLTEXTor a field with aFULLTEXT_PREFIX.- Parameters:
fieldName- a field name.- Returns:
trueiffieldNameis a fulltext field;falseotherwise.
-
-