|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.IndexingConfigurationImpl
public class IndexingConfigurationImpl
IndexingConfigurationImpl implements a concrete indexing
configuration.
| Field Summary |
|---|
| Fields inherited from interface org.apache.jackrabbit.core.query.lucene.IndexingConfiguration |
|---|
DEFAULT_BOOST |
| Constructor Summary | |
|---|---|
IndexingConfigurationImpl()
|
|
| Method Summary | |
|---|---|
AggregateRule[] |
getAggregateRules()
Returns the configured indexing aggregate rules or null if
none exist. |
float |
getNodeBoost(NodeState state)
Returns the boost for the node scope fulltext index field. |
org.apache.lucene.analysis.Analyzer |
getPropertyAnalyzer(String fieldName)
Returns the analyzer configured for the property with this fieldName (the string representation ,JCR-style name, of the given Name
prefixed with FieldNames.FULLTEXT_PREFIX)),
and null if none is configured, or the configured analyzer
cannot be found. |
float |
getPropertyBoost(NodeState state,
Name propertyName)
Returns the boost value for the given property name. |
void |
init(Element config,
QueryHandlerContext context,
NamespaceMappings nsMappings)
Initializes the configuration. |
boolean |
isIncludedInNodeScopeIndex(NodeState state,
Name propertyName)
Returns true if the property with the given name should be
included in the node scope fulltext index. |
boolean |
isIndexed(NodeState state,
Name propertyName)
Returns true if the property with the given name is fulltext
indexed according to this configuration. |
void |
nodeTypeRegistered(Name ntName)
Called when a node type has been registered. |
void |
nodeTypeReRegistered(Name ntName)
Called when a node type has been re-registered. |
void |
nodeTypeUnregistered(Name ntName)
Called when a node type has been deregistered. |
boolean |
useInExcerpt(NodeState state,
Name propertyName)
Returns true if the content of the property with the given
name should show up in an excerpt. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexingConfigurationImpl()
| Method Detail |
|---|
public void init(Element config,
QueryHandlerContext context,
NamespaceMappings nsMappings)
throws Exception
init in interface IndexingConfigurationconfig - the document element of the configuration DOM.context - the context of the query handler.nsMappings - the namespaceMappings.
Exception - if initialization fails.public AggregateRule[] getAggregateRules()
null if
none exist.
getAggregateRules in interface IndexingConfigurationnull if none exist.
public boolean isIndexed(NodeState state,
Name propertyName)
true if the property with the given name is fulltext
indexed according to this configuration.
isIndexed in interface IndexingConfigurationstate - the node state.propertyName - the name of a property.
true if the property is fulltext indexed;
false otherwise.
public float getPropertyBoost(NodeState state,
Name propertyName)
IndexingConfiguration.DEFAULT_BOOST is
returned.
getPropertyBoost in interface IndexingConfigurationstate - the node state.propertyName - the name of a property.
public float getNodeBoost(NodeState state)
getNodeBoost in interface IndexingConfigurationstate - the node state.
public boolean isIncludedInNodeScopeIndex(NodeState state,
Name propertyName)
true if the property with the given name should be
included in the node scope fulltext index. If there is not configuration
entry for that propery false is returned.
isIncludedInNodeScopeIndex in interface IndexingConfigurationstate - the node state.propertyName - the name of a property.
true if the property should be included in the node
scope fulltext index.
public boolean useInExcerpt(NodeState state,
Name propertyName)
true if the content of the property with the given
name should show up in an excerpt. If there is no configuration entry for
that property true is returned.
useInExcerpt in interface IndexingConfigurationstate - the node state.propertyName - the name of a property.
true if the content of the property should be
included in an excerpt; false otherwise.public org.apache.lucene.analysis.Analyzer getPropertyAnalyzer(String fieldName)
Name
prefixed with FieldNames.FULLTEXT_PREFIX)),
and null if none is configured, or the configured analyzer
cannot be found. If null is returned, the default Analyzer
is used.
getPropertyAnalyzer in interface IndexingConfigurationfieldName - the string representation ,JCR-style name, of the given Name
prefixed with FieldNames.FULLTEXT_PREFIX))
analyzer to use for indexing this propertypublic void nodeTypeRegistered(Name ntName)
NodeTypeRegistryListener
nodeTypeRegistered in interface NodeTypeRegistryListenerntName - name of the node type that has been registeredpublic void nodeTypeReRegistered(Name ntName)
NodeTypeRegistryListener
nodeTypeReRegistered in interface NodeTypeRegistryListenerntName - name of the node type that has been registeredpublic void nodeTypeUnregistered(Name ntName)
NodeTypeRegistryListener
nodeTypeUnregistered in interface NodeTypeRegistryListenerntName - name of the node type that has been unregistered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||