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

Hibernate Search vs spring-data-solr , spring-data-elasticsearch

I have a spring boot, Spring Data JPA (hibernate) web application and want to introduce text search feature. I understand the following Both hibernate search or spring-data-* can be integrated into my app Hibernate search can work with embedded…
6
votes
1 answer

Reactive spring-data-solr repositories

I found a Blog Post about spring-data reactive repositories. It was mentioned that, it is currently supported for MongoDB, Apache Cassandra and Redis. We are going to use spring-data-solr repositories in our reactive (based on vert'x) architecture.…
nowszy94
  • 3,151
  • 4
  • 18
  • 33
6
votes
1 answer

How to insert Nested document in solr using spring data solr?

I need to insert this kind data to solr server. { "id":"09123" "firstName": "Harshana651175279", "lastName": "Samaranayake332146645", "department": { "id":"001", "depName":"dep01" } } These…
6
votes
1 answer

java.lang.IllegalArgumentException: Environment must not be null

I try to setup a basic SolrRepository app and Have this error during ApplicationContext load : Caused by: java.lang.IllegalArgumentException: Environment must not be null! at org.springframework.util.Assert.notNull(Assert.java:112) at…
xt0f
  • 61
  • 1
  • 3
5
votes
1 answer

Spring Data Solr - Multiple FilterQueries separated by OR

I'm trying to implement a filter search using spring data solr. I've following filters types and all have a set of filters. A aa in (1,2,3) ab between (2016-08-02 TO 2016-08-10) B ba in (2,3,4) bb between (550 TO 1000) The Solr query which I…
Dheeraj Arora
  • 608
  • 4
  • 13
5
votes
1 answer

Spring data solr - Bean with Highlight

I'm writing a Web Application that communicates with Solr and I am using Spring Data Solr + SolrJ to get the information in Java. For the Solr query, I am using (e)DisMax with some options (for now, and maybe later I need to add other…
Mistre83
  • 2,677
  • 6
  • 40
  • 77
5
votes
1 answer

How to integrate apache solr in spring MVC using maven on tomcat

I am developing a web application using spring MVC and I have hosted this using tomcat. I have a requirement where I want to integrate apache-solr to my search engine. I tried looking on internet for various tutorials but couldn't find a proper one…
Anil
  • 73
  • 1
  • 7
5
votes
3 answers

How to fix LockObtainFailedException: Lock obtain timed out?

My integration tests are failing when I run them from a Gradle task. org.springframework.data.solr.UncategorizedSolrException: **SolrCore 'collection1' is not available due to init failure: Error opening new searcher; nested exception is…
Nathan Weddle
  • 187
  • 3
  • 11
5
votes
1 answer

Spring data Solr: IllegalArgumentException - this argument is required

Whenever I try to query Solr using a Spring data repository I get the following exception: Exception in thread "main" java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null at…
micha
  • 47,774
  • 16
  • 73
  • 80
4
votes
2 answers

Spring solr dynamic fields anotation

I'm trying to do a query like that retrieves one specific field from the document, i don't a get runtime error when executing the query but i don't get the 3 fields i'm supposed to retrieve from the query, just date and origin, but no the variable,…
Progs
  • 1,059
  • 7
  • 27
  • 63
4
votes
5 answers

Spring Data for Apache Solr Extended DisMax Parameters

I am trying to add the params below (qf,bq) in a Solr query generated by Spring Data Solr. Solr parameters are : qf => Spring Data Solr Method? bq => Spring Data Solr Method? I was able to find the methods below fq => addFilterQuery fl =>…
Ibrahim
  • 73
  • 1
  • 5
4
votes
1 answer

Serializing enum fields spring data solr

I have this field in my domain object @Field @Enumerated(EnumType.STRING) private SectionType sectionType; but when I check the value stored in Solr it is something like: com.x.y.objects.SectionType:H_HPI What I want is just H_HPI or it is as if…
biliboc
  • 737
  • 1
  • 10
  • 25
4
votes
0 answers

How to dynamically set Solr shards on Spring Data Solr query

How can I pass shard information on a spring-data-solr query? Using the SolrJ interface I can set: SolrQuery query = new SolrQuery(); query.add("shards", StringUtils.join(shardList, ",")); ... I would like to do the same with spring-data-solr but…
4
votes
1 answer

How to return distance and score in spatial search using spring-data-solr

I'm writing a Spring MVC based Search API using spring-data-solr 1.0.0.RELEASE with Solr 4.4.0 and Spring 3.2.4.RELEASE. I'm able to run basic queries but unable to find any good example how can I return score and distance:geodist() in the results.…
Aamir Yaseen
  • 487
  • 6
  • 20
4
votes
5 answers

Spring Data Solr multiple cores and repository

I have apache solr with multiple cores e.g. currency, country etc... So using Spring Data Solr I can retrieve information from one core. I have got this XML configuration right now queries against 'currency' core. If I wanted to query against…
user2279337
  • 691
  • 5
  • 13
  • 26
1
2 3
15 16