Questions tagged [spring-data-solr]

Spring Data for Apache Solr is one of the sub-projects of Spring Data oriented towards facilitating the use of the search engine Apache Solr.

Spring Data for Apache Solr is another of the projects included in Spring Data, implmenting the Spring Data repository API to connect with a Apache Solr data store. It uses the same programming model as other Spring Data projects (MongoDB, JPA, Gemfire, NeoJ) and it also contains abstractions to easily bootstrap an embedded Solr server.

Annotations like @Facet, @Highlight and @Boost enable access to Solr specific functionality.

236 questions
0
votes
1 answer

Using spring boot how to exclude module from spring-data-releasetrain

I am migrating everything to spring-boot version 1.4.3.RELEASE. Before the migration I was already using spring-data-solr version 2.1.0.RELEASE. After introduction of spring boot i started noticing some errors, missing methods etc... So i did some…
zalis
  • 1,191
  • 1
  • 11
  • 20
0
votes
1 answer

Spring+Cassandra+Solr Grouping

Is it possible to grouping data more than one field by using SolrTemplate example, i want to group by id and name in a table
0
votes
0 answers

spring data solr Point type creates solr field as StrField

I am using spring-data-solr 2.0.5.RELEASE with solr server 5.5.3 I have a field defined as follows public class Org { ... @Indexed(name = "geoLocation", type = "location") private Point geoLocation; ... } When I run a test that uses the…
Ram
  • 11
  • 5
0
votes
1 answer

Dubbo cannot serialize SolrPageRequest

I'm using Dubbo to make a micro-service for documents search with spring-data-solr, my Dubbo's version is 2.5.3 and my spring-data-solr version is 2.0.5. My export interface is like this: import edu.whu.irlab.scholarreader.domain.Paper; import…
赵忠伟
  • 21
  • 4
0
votes
1 answer

java.lang.VerifyError: Cannot inherit from final class when using spring boot data solr

I have a rest web service that running with spring boot 1.4.2.RELEASE. I trying to use spring data solr with my project but I am getting a VerifyError. Caused by: java.lang.VerifyError: Cannot inherit from final class at…
0
votes
4 answers

How to configure Spring data SolrCloud connection with Basic Authentication

I have configure Solr 6.2.1 as SolrCloud. Later I have Configured Basic Authentication. I am going to configure Spring data solr 2.0.4.RELEASE with Solrj 6.2 and this is my code: @Configuration @EnableSolrRepositories(basePackages = {…
0
votes
1 answer

Spring Data Solr: Retrieve document when using an explicit composite id as a routing key

I have a composite id which is a String consisting of the tenant and id of an entity separated by a "!" (for example say "tenant!id"). I am sending this composite Id as input to the query method findOne(ID compositeId), but at the time of execution…
vikki
  • 1
0
votes
1 answer

Enable schemaCreationSupport in spring-boot-starter-data-solr

I use spring-boot-starter-data-solr and would like to make use of the schmea cration support of Spring Data Solr, as stated in the documentation: Automatic schema population will inspect your domain types whenever the applications context is…
neptoon
  • 53
  • 1
  • 9
0
votes
2 answers

Solr : Always seeking for a core named "collection1"

I've created a solr core with configurations and when I try to launch solr embedded server, I get the below error. Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or…
tharindu_DG
  • 8,900
  • 6
  • 52
  • 64
0
votes
1 answer

How to use get prefix with method name in spring-data-solr?

There are lot of examples for findBy prefix but i couldn't find any example or document for how to use get prefix with method name to get the all 'address' fields from solr. This is my Dao class @Repository public interface CarDao extends…
0
votes
1 answer

Error while initialising SolrRepository: Unsatisfied dependency expressed through field

Here is the code which is gave me the below exception: @SpringBootApplication @ComponentScan(basePackages = { "com.ns.services.search", "com.ns.services.commons.exceptions" }) @EnableSolrRepositories(value = "com.ns.services.search",…
0
votes
1 answer

Spring Data Solr ConverterNotFoundException

I'm trying to configure Solr (with Multicore Support) in my application and I get a ConverterNotFoundException whenever I try and register converters. I've stepped through and can see the query being executed and documents being returned. Just the…
syncdk
  • 2,820
  • 3
  • 25
  • 31
0
votes
1 answer

Spring Data Solr and Polymorphism

i have defined destination class and some subclasses like region, country, city with some additional fields. i want put all their instances in the same solr core. it works, because i have created the schema with all possible fields(regionName,…
shan
  • 112
  • 1
  • 9
0
votes
1 answer

SolrCrudRepository : use inheritance

using java8, spring-boot 1.3.5, SOLR 5.5.1 I'm trying to save into the same schema several distinct objects, using SolrCrudRepository . At first, I only had object A, so I used public interface SolrRepository extends SolrCrudRepository
jlb
  • 358
  • 3
  • 15
0
votes
1 answer

Spring-data-solr config

i met a problem in Studying with Spring data solr,this is my Configuration Class: @Configuration @EnableSolrRepositories(basePackages={"cn.likefund.solr.repository"}, multicoreSupport=true) public class SolrContext { static final String…
kimi77
  • 1
  • 1