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

How to specify Solr Cloud collection dynamically in Spring Data Solr 2.0.1?

We are trying to implement a two-dimensional solr cloud cluster where the first dimension is a collection and the second is a shard. Collection should be determined in runtime based on a document properties. I can see that this functionality is…
Eugeny
  • 1
  • 3
0
votes
1 answer

Solr Slice v Page

Is it possible to use Slice via solrTemplate ? actually I am struggling to see if it will even make a difference because even without using spring, there doesnt appear to be any way of telling Solr to exclude its "numFound" (total results) from a…
1977
  • 2,580
  • 6
  • 26
  • 37
0
votes
1 answer

Spring Data Solr - @Query parameters "?10"

Hi I have the following query but spring data solr is putting in param 1 value instead of param 10 value for the last param: "AND days_ss:(?10)"... I guess it sees ?1 and not ?10 anyway around this, I tried using :days like one can do with JPA, but…
1977
  • 2,580
  • 6
  • 26
  • 37
0
votes
1 answer

Tomcat hangs on shutdown

We started to use spring-data-solr within our project for some admin use-cases that we need to implement. Setup Our setup for spring-data-solr is very simple:
oehmiche
  • 1,008
  • 1
  • 10
  • 9
0
votes
1 answer

Adding raw query parameters via Criteria API

I could not find an answer to this. I found the previous similar question unanswered. I'd like to use Spring data solr for queries. But @Query is insufficient for my needs. As I understood, whatever you give here becomes a q parameter to `select'…
Sathyakumar Seshachalam
  • 2,013
  • 3
  • 20
  • 32
0
votes
1 answer

How to configure Spring Data Solr with Repositories for multiple cores

Is there a detailed and complete explanation for setting up spring data with solr using repositories with multicore support?
Nikhil Sahu
  • 2,463
  • 2
  • 32
  • 48
0
votes
1 answer

is there any way to inject property variable into timeout/maxconnections into solr-server attribute

I'm trying using spring-data-solr using xml based configuration. My configuration file is :
0
votes
1 answer

How to easy create query like types : ( val1 + OR + val2 + OR + val3) with Spring Data Solr (With Dynamic Queries)

I have field "types" multivalue=true. From client layer I receive list of keys what should be processed. I want to create FilterQuery to produce fq like fq=types:(6+OR+4+OR+8) logically I expect to use next code: final Criteria criteria = new…
iMysak
  • 2,170
  • 1
  • 22
  • 35
0
votes
2 answers

Name Search on Solr

Apologies if I am posting a duplicated question, if so please point me to original question. I am a solr novice and trying to achieve ordered word name search using solr.I am expecting following response from solr Name Search Term …
er_suthar
  • 319
  • 1
  • 8
0
votes
1 answer

Can I trigger dataimport from Spring Solr integration

I am trying to write a quick class to trigger the data import on solr. I know I can just use HttpClient, but I've already got Spring-Data-Solr configured and it has the server configured etc. Is it possible to use the Query interface and the Solr…
Richard G
  • 5,243
  • 11
  • 53
  • 95
0
votes
1 answer

Solr Connection Refused error after indexing 30K records using Spring batch

I have a Spring batch job that reads data from csv file and inserts it into Solr. Job runs fine for around 30k records but gives a Solr connection refused error after that. Could someone please suggest what is the issue here? I am using 5.2.1…
0
votes
1 answer

Solr throwing rg.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got text/html

I am using Solr + Spring Data Solr for Solr Indexing. I am getting following error when I am trying save the solr document. HTTP Status 500 - Request processing failed; nested exception is org.springframework.data.solr.UncategorizedSolrException:…
behinddwalls
  • 644
  • 14
  • 39
0
votes
1 answer

Spring Data Solr : Unable to locate Attribute from Repository

This was working fine until I manage to migrate to Spring Boot. Before I was using version spring-data-solr version : 1.4.0.RELEASE and now Boot just got version 1.3.3. I tried to remove the spring-boot-starter-data-solr and reset to static…
eento
  • 761
  • 4
  • 20
  • 53
0
votes
1 answer

How to add java entites to Solr Index?

I'm new to solr. I've gone through a couple of blogs on solr integration into a web project. In my current project, the different java entities are stored in the solr index as space separated serialized string. Like, firstname + " " + lastname + " "…
jay
  • 171
  • 4
  • 13
0
votes
1 answer

Mapping 'ignorable' fields in solr to use in Spring Data

Sorry for long prehistory. I have very common case (on my mind). Lets imaging that in my schema I have:
iMysak
  • 2,170
  • 1
  • 22
  • 35