public class OakLuceneIndexUtils
extends java.lang.Object
Constructor and Description |
---|
OakLuceneIndexUtils() |
Modifier and Type | Method and Description |
---|---|
static Node |
luceneIndexDefinition(Session session,
java.lang.String indexDefinitionName,
java.lang.String async,
java.lang.String[] propertyNames,
java.lang.String[] type,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> orderedPropsMap,
java.lang.String persistencePath)
Helper method to create or update a lucene property index definition.
|
public static Node luceneIndexDefinition(Session session, java.lang.String indexDefinitionName, java.lang.String async, java.lang.String[] propertyNames, java.lang.String[] type, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> orderedPropsMap, java.lang.String persistencePath) throws RepositoryException
session
- the sessionindexDefinitionName
- the name of the node for the index definitionpropertyNames
- the list of properties to indextype
- the types of the properties in order of the propertiesorderedPropsMap
- the ordered props and its propertiespersistencePath
- the path if the persistence=file (default is repository)RepositoryException
- the repository exceptionCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.