Class AbstractSolrConfiguration
java.lang.Object
org.springframework.data.solr.repository.config.AbstractSolrConfiguration
Spring Data for Apache Solr base configuration using JavaConfig.
- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.data.convert.CustomConversionsCustomConversionsto be applied by mapping.protected RequestMethodDefaultRequestMethodto be used when sending requests viaSolrClient.Define schema setupSolrPersistentEntitySchemaCreator.Features.abstract SolrClientFactoryDefine theSolrClientFactoryto be used.protected org.springframework.data.mapping.context.MappingContextSolrTemplatesetup to provideSolrOperationsimplementation picking upsolrClientFactory(),solrConverter()anddefaultRequestMethod().
-
Constructor Details
-
AbstractSolrConfiguration
public AbstractSolrConfiguration()
-
-
Method Details
-
solrTemplate
SolrTemplatesetup to provideSolrOperationsimplementation picking upsolrClientFactory(),solrConverter()anddefaultRequestMethod().- Returns:
-
solrConverter
- Returns:
MappingSolrConverterpicking upcustomConversions()by default.
-
solrMappingContext
@Bean protected org.springframework.data.mapping.context.MappingContext solrMappingContext()- Returns:
SimpleSolrMappingContextpicking upsolrClientFactory()andschemaSupport()by default.
-
solrClientFactory
Define theSolrClientFactoryto be used.
Unless you use anEmbeddedSolrServersimply() -> new HttpSolrClient("...")should be sufficient.- Returns:
- Never null.
-
customConversions
protected org.springframework.data.convert.CustomConversions customConversions()CustomConversionsto be applied by mapping.- Returns:
- CustomConversions by default. Never null.
-
defaultRequestMethod
DefaultRequestMethodto be used when sending requests viaSolrClient.- Returns:
RequestMethod.GETby default. Never null.
-
schemaSupport
Define schema setupSolrPersistentEntitySchemaCreator.Features.- Returns:
- empty
Setby default. Never null.
-