public class DefaultSolrConfiguration extends Object implements OakSolrConfiguration
OakSolrConfigurationOakSolrConfiguration.CommitPolicy| Constructor and Description |
|---|
DefaultSolrConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
collapseJcrContentNodes()
Make all nodes / documents matching a query that are descendants of a 'jcr:content' node collapse into such a
node.
|
String |
getCatchAllField()
Provide a field name that is used as the default "catch all" field for searching over all the data
|
String |
getCollapsedPathField()
Provide the name of the field to be used for indexing the collapsed path of each node when
OakSolrConfiguration.collapseJcrContentNodes()
is set to true. |
OakSolrConfiguration.CommitPolicy |
getCommitPolicy()
Provide the commit policy to be used by a given
SolrServer |
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 |
Collection<String> |
getIgnoredProperties()
Provide the names of the properties that should be neither indexed nor searched by the Solr index
|
String |
getPathDepthField()
Provide the name of the field containing information about the depth of a certain path / node
|
String |
getPathField()
Provide the field name for indexing / searching paths
|
int |
getRows()
Provide the number of documents (rows) to be fetched for each Solr query
|
Collection<String> |
getUsedProperties()
Provide the names of the properties that should be indexed and searched by the Solr index
|
boolean |
useForPathRestrictions()
Define if the Solr index should be used to filter by path restrictions
|
boolean |
useForPrimaryTypes()
Define if the Solr index should be used to filter by primary types
|
boolean |
useForPropertyRestrictions()
Define if the Solr index should be used to address property restrictions
|
public String getFieldNameFor(org.apache.jackrabbit.oak.api.Type<?> propertyType)
OakSolrConfigurationTypegetFieldNameFor in interface OakSolrConfigurationpropertyType - the Type to be indexed / searchedType, or null
if no specific field has been configured to handle the given Type.@Nonnull public String getPathField()
OakSolrConfigurationgetPathField in interface OakSolrConfiguration@CheckForNull public String getFieldForPathRestriction(org.apache.jackrabbit.oak.spi.query.Filter.PathRestriction pathRestriction)
OakSolrConfigurationFilter.PathRestrictiongetFieldForPathRestriction in interface OakSolrConfigurationpathRestriction - the Filter.PathRestriction used for filtering
search results or null if no specific field has been configured for it.PathRestriction.public String getFieldForPropertyRestriction(org.apache.jackrabbit.oak.spi.query.Filter.PropertyRestriction propertyRestriction)
OakSolrConfigurationFilter.PropertyRestrictiongetFieldForPropertyRestriction in interface OakSolrConfigurationpropertyRestriction - the Filter.PropertyRestriction used for filtering search resultsPropertyRestriction or null if no specific field
has been configured for it.@Nonnull public OakSolrConfiguration.CommitPolicy getCommitPolicy()
OakSolrConfigurationSolrServergetCommitPolicy in interface OakSolrConfigurationOakSolrConfiguration.CommitPolicypublic String getCatchAllField()
OakSolrConfigurationgetCatchAllField in interface OakSolrConfigurationnull if no specific field
has been configured for it.public int getRows()
OakSolrConfigurationgetRows in interface OakSolrConfigurationpublic boolean useForPropertyRestrictions()
OakSolrConfigurationuseForPropertyRestrictions in interface OakSolrConfigurationtrue if SolrQueryIndex should be used
for Filter.PropertyRestrictionspublic boolean useForPrimaryTypes()
OakSolrConfigurationuseForPrimaryTypes in interface OakSolrConfigurationtrue if SolrQueryIndex should be used
for filtering by primary typespublic boolean useForPathRestrictions()
OakSolrConfigurationuseForPathRestrictions in interface OakSolrConfigurationtrue if SolrQueryIndex should be used
for filtering by Filter.PathRestrictions@Nonnull public Collection<String> getIgnoredProperties()
OakSolrConfigurationgetIgnoredProperties in interface OakSolrConfigurationCollection of property names for properties to be ignored@Nonnull public Collection<String> getUsedProperties()
OakSolrConfigurationgetUsedProperties in interface OakSolrConfigurationCollection of property names for properties to be ignoredpublic boolean collapseJcrContentNodes()
OakSolrConfigurationcollapseJcrContentNodes in interface OakSolrConfigurationtrue if only the 'jcr:content' node should be returned for all its the matching descendants,
false otherwise@Nonnull public String getCollapsedPathField()
OakSolrConfigurationOakSolrConfiguration.collapseJcrContentNodes()
is set to true.getCollapsedPathField in interface OakSolrConfigurationpublic String getPathDepthField()
OakSolrConfigurationgetPathDepthField in interface OakSolrConfigurationCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.