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

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 able to query from field1, so how to make field…
ANUJ
  • 1
  • 2
0
votes
1 answer

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 answer…
Anton Khoff
  • 16
  • 1
  • 5
0
votes
1 answer

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 happens successfully in the service class. But on…
raikumardipak
  • 1,461
  • 2
  • 29
  • 49
0
votes
1 answer

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 classes within the MergePersistenceUnitManager but…
timbo
  • 3
  • 4
0
votes
1 answer

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 exception while talking to the server. It seems…
夢のの夢
  • 5,054
  • 7
  • 33
  • 63
0
votes
1 answer

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\:00\:00.000Z+TO+2012\-12\-31T00\:00\:00.000Z] This…
ypriverol
  • 585
  • 2
  • 8
  • 28
0
votes
1 answer

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") private String title; .... and in the…
夢のの夢
  • 5,054
  • 7
  • 33
  • 63
0
votes
1 answer

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 @Configuration @EnableSolrRepositories(basePackages…
user3029929
  • 471
  • 2
  • 7
  • 20
0
votes
1 answer

java based configuration for Spring data solr 3.0.6 release

I am trying to use Spring solr starter in spring boot using java based configuration. I have read official doc https://docs.spring.io/spring-data/solr/docs/current/reference/html/#solr.annotation, there is only a sample to connect…
Josh
  • 21
  • 6
0
votes
2 answers

Authenticating SolrCore using Spring Data Solr

I have an Service(API) which connects to solr to fetch data and sends as response.Till now we didn't had any type of security layer on Solr so my API was working fine.But things changed and all core's were added with sceurity layer for…
Kalebere Gaurav
  • 69
  • 2
  • 13
0
votes
1 answer

How to make a cutomized query to Solr with Spring?

I am trying to retrieve some data I stored before from Solr. This is my model. @SolrDocument(solrCoreName = "images") public class Imagen { @Id @Field private String id; @Field …
0
votes
1 answer

spring data solr , set timezone UTC

all the data in solr are in UTC, my spring boot app is running on a EST JVM ( Tomcat). Is there is a way to configure solrClient/ SolrTemplat to use UTC timezone for Date? thanks
romu31
  • 821
  • 9
  • 17
0
votes
1 answer

@Indexed annotation is ignored

I have a simple Product class as it follows @SolrDocument(collection = "product") public class Product { @Id @Indexed(name = "id", type = "string") private String id; @Field @Indexed(name = "namex", type = "text_general", stored = false,…
fleo85
  • 1
  • 1
0
votes
1 answer

SolrCrudRepository search issue

I am using Spring Boot Application with Spring Data Using SolrCrudrepository. I have an entity called Product which is used to Store the product Information in Solr. My Question is , i want to get all the ProductIDs from the Productreposirory. I…
0
votes
0 answers

Spring Boot Solr : Index List of child documents

I am getting an XML of the below format which I want to index into Solr using SpringBoot. However, I get an exception when I try to index the parent Document with a List of ChildDocuments. XML -
JHS
  • 7,761
  • 2
  • 29
  • 53