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
1
vote
0 answers

How to highlight multiple words using different formatters in Solr?

I need to perform highlighting for multiple words into the same field but for each one using a specific formatter (prefix and postfix). Let's say that I have the description field and for a document it has the value: Einstein always excelled at math…
Paul Stoia
  • 11
  • 1
1
vote
0 answers

Customize the SOLR Default response to custom Search response

I was working on the POC of accessing the solr via the microservices using spring boot. I am using the Rest template to connect the solr . My query is can we customize the response that solr returns ?. For…
1
vote
1 answer

Spring Data Solr - Multi Core Support

With latest Spring Data Solr 3.0.9-RELEASE don't we have support fo multicore? @EnableSolrRepositories(multicoreSupport=true) or SolrTemplate.setSolrCore() ? We are upgrading Spring-Data-Solr from 2.1.13-RELEASE to 3.0.9-RELEASE and seeing…
Arun Avanathan
  • 982
  • 4
  • 11
  • 26
1
vote
0 answers

Spring data solr & Solr cloud support

We want to introduce Solr cloud into our project, which is based on Spring-data-rest. Unfortunately we are unable to find any claims if clusterized Solr-Cloud is supported in spring data rest and we've seen plenty of issues with older spring-data…
malejpavouk
  • 4,297
  • 6
  • 41
  • 67
1
vote
1 answer

Spring data solr doesn't return autogenerated id after save

I'm trying simply to save entity into solr using spring data and get its autogenerated id. I see that id is generated but it was not returned back to me. Code is trivial entity: @SolrDocument(solrCoreName = "bank") @Canonical class Shop { @Id …
Dmitrii Borovoi
  • 2,814
  • 9
  • 32
  • 50
1
vote
1 answer

Conflict between spring-data-cassandra and spring-data-solr

I'm currently working in project that needs Cassandra database to have search ability. We've got DataStax cluster and we want to use Spring Data to simplify database operations. However, when we made entity that got both - @Table (for cassandra) and…
1
vote
1 answer

Spring Data Solr: map type field

is it possible to define in @SolrDocument a field with type Map>? I've tried using: @Indexed(name = "words", type = "string") var words: Map>? I'm setting that field as val words = mapOf(Pair("1111",…
doublemc
  • 3,021
  • 5
  • 34
  • 61
1
vote
0 answers

Spring data solr - multilingual support

I've to implement multilingual search capability & I was reading thro' Spring data Solr but couldn't find much details on how to implement multilingual queries using Spring data Solr. Consider there's a Solr collection with dynamic fields & we're…
Shailendra
  • 61
  • 1
  • 5
1
vote
1 answer

Create new SOLR collection at runtime

I am using a SOLR 7.1.0 Server with an JAVA spring boot application. To communicate with the SOLR server I am using "springframework.data.solr" I have a "template" schema from which I want to create new cores at the runtime. The goal I want to…
Bambuk
  • 192
  • 1
  • 15
1
vote
0 answers

objects as attributes in spring-data-solr document using converters

I am using spring-data-solr to index my entities. As far as I understand, Solrj can handle Date attribute but can't handle LocalDate. I tried to create and register custom converters following this for conversion between LocalDate and String but it…
Jan Tomášek
  • 135
  • 10
1
vote
1 answer

Is there any way to apply De Morgan's law to dynamic query in Spring Data Solr?

I've got the following problem: Solr seems to not like and return anything when a part of my dynamically generated criteria contains only negations, like this: AND (-title_facet:*title* AND -title_facet:*List*) (Which is a Crotch, created from two…
Luigius
  • 63
  • 9
1
vote
0 answers

Spring data solr boost - bq clause

We are trying to use spring data solr. We have a heavy need to use boost query (bq) Is there a way to generate "bq" clause while querying solr using spring data solr? The field on which we use boost value, is not used for filtering. Say I am looking…
M. N
  • 11
  • 2
1
vote
1 answer

ClassNotFoundException: org.apache.solr.client.solrj.embedded.EmbeddedSolrServer

I'm using Spring Boot with the following dependency: compile group: 'org.springframework.data', name: 'spring-data-solr', version: '2.1.6.RELEASE' For development and testing, I'd like to use the EmbeddedSolrServer. For that, I have the…
Black Dynamite
  • 4,067
  • 5
  • 40
  • 75
1
vote
1 answer

What is the classpath for the embedded solr server in spring boot?

I try to use an embedded solr server in my spring boot application. My configuration is as following: package ch.*.rest.config; import java.io.IOException; import javax.xml.parsers.ParserConfigurationException; import…
1
vote
2 answers

spring-data-solr2.1.3+solr6.5.1 NoSuchMethodError: org.apache.solr.common.SolrInputDocument: method ()V not found

I use spring-data-solr (2.1.3) and solr (6.5.1), but when I use solrTemplate.saveBean(Command), an exception is thrown: java.lang.NoSuchMethodError: org.apache.solr.common.SolrInputDocument: method ()V not found This is my pom.xml
catcher92
  • 13
  • 4