public abstract class OakSolrNodeStateConfiguration extends Object implements OakSolrConfiguration, SolrServerConfigurationProvider<EmbeddedSolrServerProvider>
OakSolrConfiguration specified via a given NodeState.
For each of the supported properties a default is provided if either the
property doesn't exist in the node or if the value is null or
empty String.
Subclasses of this should at least provide the NodeState which holds
the configuration.| Modifier and Type | Class and Description |
|---|---|
class |
OakSolrNodeStateConfiguration.Properties
Properties that may be retrieved from the configuration
NodeState. |
| Constructor and Description |
|---|
OakSolrNodeStateConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCatchAllField()
Provide a field name that is used as the default "catch all" field for searching over all the data
|
CommitPolicy |
getCommitPolicy()
Provide the commit policy to be used with the underlying Solr instance
|
protected abstract org.apache.jackrabbit.oak.spi.state.NodeState |
getConfigurationNodeState()
get the
NodeState which contains the properties for the Oak -
Solr configuration. |
String |
getFieldForPathRestriction(org.apache.jackrabbit.oak.spi.query.Filter.PathRestriction pathRestriction)
Provide a field name to search over for the given
Filter.PathRestriction |
String |
getFieldForPropertyRestriction(org.apache.jackrabbit.oak.spi.query.Filter.PropertyRestriction propertyRestriction)
Provide a field name to search over for the given
Filter.PropertyRestriction |
String |
getFieldNameFor(org.apache.jackrabbit.oak.api.Type<?> propertyType)
Provide a field name to be used for indexing / searching a certain
Type |
String |
getPathField()
Provide the field name for indexing / searching paths
|
SolrServerConfiguration<EmbeddedSolrServerProvider> |
getSolrServerConfiguration()
Provide a
SolrServerConfiguration to be used to initialize a specific
SolrServer implementation. |
protected String |
getStringValueFor(String propertyName,
String defaultValue) |
protected abstract org.apache.jackrabbit.oak.spi.state.NodeState getConfigurationNodeState()
NodeState which contains the properties for the Oak -
Solr configuration.public String getFieldNameFor(org.apache.jackrabbit.oak.api.Type<?> propertyType)
OakSolrConfigurationTypegetFieldNameFor in interface OakSolrConfigurationpropertyType - the Type to be indexed / searchedString representing the Solr field to be used for the given Type.public String getPathField()
OakSolrConfigurationgetPathField in interface OakSolrConfigurationString representing the Solr field to be used for paths.public String getFieldForPathRestriction(org.apache.jackrabbit.oak.spi.query.Filter.PathRestriction pathRestriction)
OakSolrConfigurationFilter.PathRestrictiongetFieldForPathRestriction in interface OakSolrConfigurationpathRestriction - the Filter.PathRestriction used for filtering search resultsString to be used by Solr for the given restrictionpublic String getCatchAllField()
OakSolrConfigurationgetCatchAllField in interface OakSolrConfigurationString representing the Solr field to be used as "catch all" fieldpublic String getFieldForPropertyRestriction(org.apache.jackrabbit.oak.spi.query.Filter.PropertyRestriction propertyRestriction)
OakSolrConfigurationFilter.PropertyRestrictiongetFieldForPropertyRestriction in interface OakSolrConfigurationpropertyRestriction - the Filter.PropertyRestriction used for filtering search resultsString to be used by Solr for the given restrictionpublic CommitPolicy getCommitPolicy()
OakSolrConfigurationgetCommitPolicy in interface OakSolrConfigurationCommitPolicypublic SolrServerConfiguration<EmbeddedSolrServerProvider> getSolrServerConfiguration()
SolrServerConfigurationProviderSolrServerConfiguration to be used to initialize a specific
SolrServer implementation.getSolrServerConfiguration in interface SolrServerConfigurationProvider<EmbeddedSolrServerProvider>SolrServerConfiguration holding the configuration parametersCopyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.