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

Spring Data Solr with Dynamic Field not working

I am trying to index a document with dynamic fields and have it defined: @SolrDocument(solrCoreName = "collection1") public class SolrProduct { @Field String id; @Field String name; @Field("mappedField_*") Map
checklist
  • 12,340
  • 15
  • 58
  • 102
3
votes
0 answers

Does Spring Data Solr support child documents?

I am investigating Spring Data for Solr, to see if the abstractions it adds will be suitable for my needs, and if I should be using it instead of SolrJ. I have worked through some examples, as well as quite a bit of the documentation, and I'm…
Josh Edwards
  • 888
  • 5
  • 13
3
votes
1 answer

Spring-Data-Solr How to provide authentication data

how do i proivde authentication data for spring data solr server? Here is what i have in configuration
user3799300
  • 75
  • 1
  • 7
3
votes
1 answer

Spring Data Solr Precedence for Custom Repository

I need to implement the following in a Spring Data Solr custom repository: (X OR Y) AND Z My current code is as follows: Criteria criteria = new Criteria("x").is(X_VALUE); criteria = criteria.or(new Criteria("y").is(Y_VALUE); criteria =…
checklist
  • 12,340
  • 15
  • 58
  • 102
3
votes
2 answers

How to build FacetQuery using spring-data-solr which returns all documents (*:*) from solr index

I want to write a FacetQuery which may not have any criteria except one filter condition (fq). Following query is an example which I want to build using spring-data-solr…
Aamir Yaseen
  • 487
  • 6
  • 20
3
votes
2 answers

How to search on phrases in Spring Data Solr 1.0

I have a search query that contains quoted phrases and other words and would like to use spring-data-solr 1.0. Here is an example query: dog "siamese cat" penguin I've been trying something like, new Criteria("myfield").contains("dog") …
wsams
  • 2,499
  • 7
  • 40
  • 51
3
votes
3 answers

Implementing Tagging and Excluding Filters with Solrj / Spring Data Solr

I am trying to implement a Solr Facet search with multi-select on a field. To take this example: http://docs.lucidworks.com/display/solr/Faceting#Faceting-LocalParametersforFaceting, I would like to generate this call to…
checklist
  • 12,340
  • 15
  • 58
  • 102
3
votes
1 answer

How to search nested object by using Spring Data Solr?

I have two such Java object: public class PSubject { @Column @Field(index=Index.YES, analyze=Analyze.YES, store=Store.NO) @org.apache.solr.client.solrj.beans.Field("name") private String name; @Column …
Tom
  • 2,857
  • 9
  • 46
  • 59
2
votes
0 answers

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":"2019-03-27 14:25:03" }, "1":{ "order_id":"000000002", "order_date":"2019-03-27…
Dragon
  • 25
  • 4
2
votes
0 answers

`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.RELEASE)
2
votes
0 answers

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

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: Field field = new SimpleField("popularity"); Function…
DarrenP
  • 21
  • 2
2
votes
0 answers

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 searching specific child documents and receiving the…
2
votes
1 answer

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
  • 1,495
  • 1
  • 17
  • 15
2
votes
0 answers

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 index/collection? For example, I have two document…
Alexander
  • 753
  • 2
  • 10
  • 25
1 2
3
15 16