public class DefaultSolrConfiguration extends Object implements OakSolrConfiguration
OakSolrConfiguration| Constructor and Description |
|---|
DefaultSolrConfiguration() |
| 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
|
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 collection of properties that should be neither indexed nor searched by the Solr index
|
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
|
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 / 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 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 String getCatchAllField()
OakSolrConfigurationgetCatchAllField in interface OakSolrConfigurationString representing the Solr field to be used as "catch all" fieldpublic int getRows()
OakSolrConfigurationgetRows in interface OakSolrConfigurationint for the setting of Solr rows parameterpublic 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.PathRestrictionspublic Collection<String> getIgnoredProperties()
OakSolrConfigurationgetIgnoredProperties in interface OakSolrConfigurationCollection of Strings representing the names of the ignored propertiesCopyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.