public class SimplePropertyDefinition extends Object implements PropertyDefinition
Constructor and Description |
---|
SimplePropertyDefinition(String property,
String nodeName)
Creates a simple PropertyDefinition for oak lucene index
|
SimplePropertyDefinition(String property,
String nodeName,
float boost) |
SimplePropertyDefinition(String property,
String nodeName,
float boost,
boolean analyzed) |
SimplePropertyDefinition(String property,
String nodeName,
String propertyType) |
Modifier and Type | Method and Description |
---|---|
void |
build(Resource resource)
Creates PropertyDefinition under the given resource
|
void |
setAnalyzed(boolean analyzed) |
void |
setBoost(float boost) |
void |
setNodeName(String nodeName) |
void |
setProperty(String prop) |
void |
setPropertyType(String type) |
public SimplePropertyDefinition(String property, String nodeName)
property
- property to indexnodeName
- PropertyDefinition node namepublic SimplePropertyDefinition(String property, String nodeName, float boost)
property
- property to indexnodeName
- property definition node nameboost
- index time field boost factorpublic SimplePropertyDefinition(String property, String nodeName, String propertyType)
property
- property to indexnodeName
- property definition node namepropertyType
- propertyTypepublic void setNodeName(String nodeName)
public void setProperty(String prop)
public void setPropertyType(String type)
public void setBoost(float boost)
public void setAnalyzed(boolean analyzed)
public void build(Resource resource) throws PersistenceException
build
in interface PropertyDefinition
resource
- Resource under which PropertyDefinition is to be createdPersistenceException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"