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
2
votes
1 answer

Unable to locate Spring NamespaceHandler for XML schema namespace http://www.springframework.org/schema/data/solr

I am trying to integrate spring and Apache solr. For that i am trying NamespaceHandler http://www.springframework.org/schema/data/solr. But this giving me the following error. Can any please help me.
Dibyendu
  • 51
  • 7
2
votes
1 answer

Spring-Data-Solr aggregate functions

Is it possible to query solr usign spring data to get an average/sum etc for one field? I tried to do facets (but there is only count available). I found that there are Stats Components available with solr. Adding to query some parameters like…
wojtek
  • 493
  • 1
  • 7
  • 12
2
votes
1 answer

How to setup Spring Data Solr with EmbeddedSolrServer and multicore support?

I'm using Spring Data Solr to implement the search module in my project. To enable multicore support, I simply instantiate a HttpSolrServer and then declare a java-based Spring configuration class with @EnableSolrRepositores(multicoreSupport=true).…
Ziju Feng
  • 327
  • 1
  • 4
  • 13
2
votes
1 answer

Can you modify character escaping in spring-data-solr?

We store a path in our schema, slash-delimited, and it also starts with a slash. According to this post solr interprets slashes in the beginning of queries as regex expressions after version 4.0, which means that we need to escape the slash. But…
Einar Bjerve
  • 524
  • 2
  • 12
2
votes
2 answers

How to Implement custom Solr Repository using Spring Data Solr for multiple cores and repositories

I want to have access to multiple/2 repos in one service using spring-data-solr. From Spring Data Solr multiple cores and repository I know 'multicore support via namespace config is unfortunately an open issue'. Can you please help me with the…
Aamir Yaseen
  • 487
  • 6
  • 20
2
votes
1 answer

class file for org.apache.solr.client.solrj.embedded.EmbeddedSolrServer not found

I would like to set up an embedded Solr server into my existing web application. But I'm failing already at creating the beans: [ERROR] /home/danny/workspace/example/src/main/java/com/example/config/MainConfig.java:[76,45] cannot access…
dtrunk
  • 4,685
  • 17
  • 65
  • 109
2
votes
2 answers

Appending the double quotes for a criteria value having multiple words in spring data solr

I am using spring data solr 1.0.0.Release version. One of my criteria value is having space like digital still cameras. But the query string is forming as "digital still cameras" i.e appending the criteria value with double quotations. So that I am…
1
vote
0 answers

instanciating SolrCrudRepository programmatically, without Spring Boot magic

I have a Spring Boot 2.4 project that is using spring-boot-starter-data-solr. Unfortunately, spring-boot-starter-data-solr is not supported anymore (see https://spring.io/projects/spring-data-solr#overview) , so I can't easily upgrade Spring Boot as…
Vincent F
  • 6,523
  • 7
  • 37
  • 79
1
vote
0 answers

Spring Data Solr - support native (not "anonymous" or "unlabeled") nested/child documents?

As I understand, from Solr 8 there is new way of handling nested/child documents. Classic Solr way is now referred to as an "anonymous" or "unlabeled"child document." Supports Spring Data Solr somehow the new way? Can somebody write simplest example…
1
vote
0 answers

Solr's [child] Document Transformer returning empty child fields

I am trying to return child document fields with the parent in a query's field list. In version 7.7 of Solr, we had to specify fl=*,[child parentFilter=type:account] which would correctly return all parents' fields along with the associated child…
CoffeePasta
  • 145
  • 1
  • 2
  • 11
1
vote
0 answers

Kotlin Spring repository Inheritance problems when trying to override function

I will try to simplify for the sake of clarity. This is my Entities.kt where I have just two classes, A and B. B extends A @SolrDocument(solrCoreName = "core") open class A( @Id @Indexed(name="id", type = "string_or") var id: String =…
1
vote
0 answers

Spring Solr data - custom convertor for dynamic fields

I have some fields in Solr that I'm currently mapping to Java like so: @Field("file_*") @Dynamic private final Map> fileDetails; this matches a number of dynamic fields…
lukens
  • 479
  • 4
  • 10
1
vote
0 answers

Apache Solr Distributed Search in Spring-boot

We have Java-based application using Apache Solr APIS to read data across multiple Cores(Collections) via distributed search…
1
vote
1 answer

How do I shutdown SolrTemplate in Spring Data Solr

I have written a Spring Boot console application (version 2.2.4. Spring-data-solr version 4.1.4) using CommandLineRunner interface. I have wired in a service that starts up a SolrTemplate connect. I use this to run a few queries against a Solr…
Todd347
  • 73
  • 6
1
vote
0 answers

Serializing childdocuments, fields spring data solr

I am trying to persist nested documents in solr. I have tried both Field(child= true) and @Childdocument annotation. With @Field(child=true) & @ChildDocument i get [doc=null] missing required field: id, retry=0 commError=false errorCode=400 I…
osunanda
  • 11
  • 1