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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
153 views

Issues upgrading to Spring Boot 3.1.2 ad Spring Data Solr 4.3.15

I was using Spring Boot 2.x and with Spring Data SOLR 4.3.12 and Spring Data Commons 2.7.14, my app works normally connecting and querying SOLR. I upgraded Spring Boot to 3.1.2 and spring Data SOLR 4....
user3508858's user avatar
0 votes
0 answers
30 views

Getting java.lang.NoClassDefFoundError: HttpSolrClient$Builder And java.lang.NoSuchMethodError: SolrInputDocument.<init>([Ljava/lang/String;)V

Following is the code that I have written from Solr Documentation (Solrj tab) I believe the getSolrClient method has following implementation: String solrUrl = solrServerUrl.concat("test-core&...
Dragon's user avatar
  • 25
0 votes
0 answers
128 views

AtomicUpdateDocumentMerger Unknown operation for the an atomic update,&#8203; operation ignored

I am getting a warning on Solr logging as AtomicUpdateDocumentMerger Unknown operation for the an atomic update,&#8203; operation ignored: order_id I am using Spring Data Solr to update my ...
Dragon's user avatar
  • 25
2 votes
0 answers
41 views

How to insert a subList into solr with Spring Data Solr

I have following data: "orders":{ "placed_orders_count":2, "0":{ "order_id":"000000001", "order_date":"...
Dragon's user avatar
  • 25
0 votes
0 answers
65 views

How to insert a Collection into Solr with Spring Data Solr

I want to insert Collections into solr with Spring Data Solr but I am unable to do so. Following is my CustomerSolr Class which I want to insert in Solr @Id @Indexed(name = "id", ...
Dragon's user avatar
  • 25
0 votes
0 answers
33 views

Apache solr query api on how to search for a perfect match of a column values

In solr repo we have tags for a page like 1,2,3 and user tags will have 1,2,3,4 Hence if user tags contains all page tags then we want give user the access Spring solr Code below Criteria criteria = ...
sam2539431's user avatar
1 vote
0 answers
122 views

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#...
Vincent F's user avatar
  • 6,723
0 votes
1 answer
437 views

How to write a Solr query to get all the documents by ids

I want to write a query that returns the documents with ids. For example, I want documents with ids 1-10. I want to write a query that will enable me doing that. Like q=id:1,q=2..... How?
ab AL's user avatar
  • 31
0 votes
1 answer
118 views

How do I implement boolean search using SolrCrudRepository

I have a Spring Boot Application with Spring Data and SolrCrudRepository. My first steps were creating repository methods such as public Page<SolrDoc> findByTitle(String term, Pageable ...
Bill T's user avatar
  • 93
1 vote
0 answers
99 views

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 ...
Jaroslav Pubal's user avatar
1 vote
0 answers
280 views

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 ...
CoffeePasta's user avatar
0 votes
1 answer
334 views

Solr document Custom mapping depending on type

I have a SOLR server serving information on 3 types of entities that share some information in common. For many reasons, I decided to store all the information in the same core. Using solr data spring,...
adrian's user avatar
  • 11
1 vote
0 answers
338 views

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 @...
adrian's user avatar
  • 11
1 vote
0 answers
182 views

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<String, List<String>> fileDetails; this matches a number of ...
lukens's user avatar
  • 481
2 votes
0 answers
120 views

`SolrRepositoryFactoryBean` is not initialising SolrOperations/SolrTemplate during bean initialisation

I have configured authentication to access solr-admin. I want to provide authentication to all spring-data-solr calls. Below is my configuration, (we have to use spring-data-solr version = 1.5.x....
Mayur Dhande's user avatar
1 vote
0 answers
213 views

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 https://lucene.apache.org/solr/guide/6_6/distributed-search-with-index-...
Yaseer Hussain's user avatar
0 votes
1 answer
611 views

What is the difference between SolrTemplate and SolrClient?

I was documenting my code that i wrote following some tutorials on Spring data for solr apache, and i realised i didn't know the diference between a solrTemplate and a SolrClient ? i was documenting ...
yassine yousfi's user avatar
1 vote
1 answer
275 views

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. ...
Todd347's user avatar
  • 73
2 votes
0 answers
66 views

Why does @SolrDocument doesn't create collection/core if it doesn't exist and throw 404 error

Is there a way to create automatically in solr server startup or programmatically in spring-data-jpa using any annotations?
sahana bhat's user avatar
0 votes
1 answer
221 views

How to run Solr instance from Java

I have a spring boot app which is used to load data into solr during post construct and retrieve accordingly but i want to make sure solr server is up and running before spring boot app comes up. How ...
sahana bhat's user avatar
0 votes
0 answers
138 views

Spring Data Solr delete operation not working properly

Simple Springboot application using Java + Spring data solr. Trying to delete the data from solr, it is not working properly. No error. Simply when we check the data again, it still exists. @...
sivaspon's user avatar
0 votes
0 answers
239 views

how to fetch multiple documents from 5 different collections in solr provided all collections have a field(key) unique

Is it possible to fetch the documents from all different collections in parallel and return as a list of document in solrj/spring-data-solr? how to maintain the order for each collection as well. ...
sahana bhat's user avatar
0 votes
1 answer
837 views

Set Spring SolrDocument Collection name based on PropertyValue

I want to set values Spring SolrDocument Collection based on application.yml value. @Data @SolrDocument(collection = @Value("${solr.core}")) public class SearchableProduct { }
Michela Dennis's user avatar
0 votes
1 answer
149 views

How to get a suggestion through solrTemplate

When using solrTemplate, I have no way to get the results in suggest. With solrj I can use getSuggesterResponse() to get this result. I debugged it and found that it didn't use getSuggesterResponse() ...
Alan Yuan's user avatar
2 votes
1 answer
1k views

Pageable must not be null Exception thrown when using group functionality in Spring Data-Solr

When creating a group by query using the documentation example for springboot data-solr and SolrTemplate, I receive results but there is no grouping information. When looking at the sample code: ...
DarrenP's user avatar
  • 21
3 votes
0 answers
346 views

Spring Data solr is creating fieldtype as text_general even though we mention as string

I am trying to integrate Spring Data solr into my spring application and I have strucked with the below problem. Even though I have added the type=string in @Indexed property it is still creating the ...
sree's user avatar
  • 878
0 votes
1 answer
469 views

Date type in Spring data for Apache Solr

Is there a Solr "date" type representation in Spring data for Solr? I have a requirement of indexing the timestamp/date of a new document indexed. And I'm using Spring Data for Apache Solr. How can I ...
Dileepa Jayakody's user avatar
1 vote
0 answers
327 views

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 ...
osunanda's user avatar
3 votes
1 answer
726 views

Migration from solrj to spring-data-solr

Can't find full tutorial for spring-data-solr. Have a question about migrating to spring-data-solr. For example I have the following query on solarj: SolrQuery query = new SolrQuery(); query....
Tyulpan Tyulpan's user avatar
2 votes
0 answers
588 views

Building Block-Join-Parent Query Criteria with Spring-Data-Solr

I have a Solr Core with Parent-Child Documents and I want to build dynamic Querys to search those documents. I'm using Spring-Data-solr and want to use the Criteria-Class to build such queries for ...
johnyMcClueless66's user avatar
0 votes
0 answers
7k views

org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at

I have a spring application and I am using Solr to save documents. I am using spring data solr to communicate with Solr cores. Initially I had Solr setup on my local, hence in the application....
Siddharth Sinha's user avatar
0 votes
1 answer
76 views

Solr returning all the documents on query

I have a solr core setup. The schema of the core is as follows: docId: '', text: '' Here is the screenshot of my core admin page: Here is my SolrCrudRepository Interface package com.example....
Siddharth Sinha's user avatar
0 votes
0 answers
145 views

how to make field non searchable in spring-data-jpa-solr

I am using solr-spring-data JPA for query and saving in solr. I added @SolrDocument(collection = "test") on POJO and on field level i added (name= "field1", searchable=false), but still i am ...
ANUJ's user avatar
  • 1
0 votes
1 answer
155 views

Tagging fields with Spring Data Solr

I'm using Spring Data Solr 4.0.5.RELEASE and can't find a way to properly tag fields in my filter query to achieve something like {!tag=price}price:10. There is a similar post here and an accepted ...
Anton Khoff's user avatar
1 vote
0 answers
236 views

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 ...
Paul Stoia's user avatar
2 votes
1 answer
3k views

Does Solr 7.x have support for Java 11?

Currently our applications runs with Spring Data Solr + Apache Solr 5.3 + Java 8 We are upgrading our systems to Java 11. Does Spring Data Solr & Apache Solr latest version support Java 11 ?
IamVickyAV's user avatar
  • 1,495
1 vote
0 answers
191 views

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 ?....
Syed Ghouse Habib's user avatar
0 votes
1 answer
228 views

No Association Found Error while indexing data to Solr using Spring-Data-Solr

I am trying out a sample service application of spring data mongoDB + spring data solr where MongoDB is used to persist the data and solr for indexing and searching. The save operation to MongoDB ...
raikumardipak's user avatar
1 vote
1 answer
594 views

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....
Arun Avanathan's user avatar
1 vote
0 answers
51 views

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'...
malejpavouk's user avatar
  • 4,345
2 votes
0 answers
241 views

spring-data-solr: multiple repositories in single collection?

I am trying to get a grasp of spring-data-solr. Basic concepts like SolrDocument and Repository are straightforward enough. But how spring data solr handles multiple documents residing in the same ...
Alexander's user avatar
  • 753
0 votes
1 answer
215 views

Trouble using spring-data-solr with Broadleaf commerce

Using Broadleaf Commerce version 5.2.2-GA. I have implemented custom search capability using spring-data-solr. Seeing this issue: [org.broadleafcommerce.cms.url.domain.URLHandlerImpl] are managed ...
timbo's user avatar
  • 3
0 votes
1 answer
1k views

Does Spring Data Solr work with zookeeper host?

I have a spring boot application and in my properties file I have: spring.data.solr.host=http://{SOLR.HOST}/solr This works fine but if I replaced the SOLR.HOST with ZOOKEEPER.HOST, it throws an I/O ...
夢のの夢's user avatar
  • 5,272
1 vote
1 answer
595 views

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(...
Dmitrii Borovoi's user avatar
0 votes
1 answer
32 views

Strange Solr spring behaviour

When I built my query with Spring data, it produce the following query: http://localhost:8983/solr/pride_projects/select?q=accession:*PXD*+OR+accession:*PRD*+AND+publication_date:[2012\-12\-31T00\:...
ypriverol's user avatar
  • 595
3 votes
1 answer
912 views

Unable to set SolrDocument annotation at RUNTIME

I am using Spring Data Solr and I have the following Solr document model class and have a corresponding SolrCrudRepository for this class @SolrDocument(collection = "oldCollectionName") public class ...
user3388770's user avatar
2 votes
2 answers
987 views

Change default query fields in SolrCloud using the API

I'm using SolrCLoud is to search documents with multiple attributes. In my application, I would like to search over all the fields if the query does not specify any specific field such term1 AND term2 ...
ypriverol's user avatar
  • 595
1 vote
1 answer
713 views

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 ...
ŁukaszG's user avatar
  • 606
0 votes
1 answer
264 views

Why is mapping for spring data solr slow?

Say I have the following class for solrdocument @SolrDocument(solrCoreName="some_core") public class SolrProduct { @Id @Indexed(name="id") private String id; @Indexed(name="title_str"...
夢のの夢's user avatar
  • 5,272
0 votes
1 answer
584 views

In Spring data solr 3.0.6 release , choose solr core dynamically

I am using spring data solr 3.0.6, and standalone solr server 7.0.0 and I have multiple solr cores in my solr server, and I want to choose one of them dynamically , Here is the configuration I Have @...
user3029929's user avatar

1
2 3 4 5