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

solrTemplate is null when referenced from custom repository using spring data solr

Trying to implement a custom solr repository and injected solrTemplate (using @Resource) to the custom*Impl.java but it is null and throwing below exception. Tried all the options but in vain. SEVERE: Servlet.service() for servlet…
Java Geek
  • 1
  • 1
0
votes
0 answers

spring-data-solr : BeanCreationException for Repository interface

I am trying to use spring-data-solr (1.4.0) for searching names from Solr. I created a SolrRepository interface as mentioned below but i am getting a BeanCreationException on server startup. Below is the stack trace. Can someone please suggest what…
0
votes
1 answer

NoClassDefFoundError when making a query in spring-data-solr within a play framework application

I keep running into an issue when making a spring-data-solr query from within my play framework v2.3.8 application. The query seems to succeed but then the class loader spring is using can't find the class files for my data model classes and throws…
blast7
  • 45
  • 10
0
votes
1 answer

Solr: Strange behavior with quoting and escaping

I am using filter queries with Solr 4.10.0 / Lucene 4.10.0 and have the strange situation that while fq=areas:Finanz- & Rechnungswesen and fq=areas:"Finanz- & Rechnungswesen" yield the same set of documents, fq=areas:E-Commerce & Neue Medien…
jpvee
  • 913
  • 1
  • 15
  • 23
0
votes
1 answer

How to serialize/deserialize a map with Solr/Lucene?

I am new to solr, and I am facing a problem when I try to serialize/deserialize a Map in Solr. I use Spring Data Solr in my Java application as follow: @Field("mapped_*") private Map values; It flatten and serializes my map in Solr…
yohm
  • 452
  • 7
  • 14
0
votes
1 answer

Spring Data Solr phrase search and Sorting

I am looking for help on Spring data solr phrase search and ordering. When I search for "Spring Data", it should return the data that has "Spring Data" in it. > Ex:- Should return --- Spring Data is good > Should return --- 123Spring Data123 is…
user1578872
  • 7,808
  • 29
  • 108
  • 206
0
votes
1 answer

How to do Polygon Spatial Search in Spring-data-solr

I have to do a query something like below :- fq=latlng:IsWithin(POLYGON(('23.60 71.60','28.65 71.68','28.60 72.61','28.63 72.65'))) Now I got stuck here in how to do this query using Spring-Data-Solr where I have function like public List
Swaraj
  • 589
  • 4
  • 15
0
votes
1 answer

SOLR Spring Data geospatial query

I'm using dynamic queries to search SOLR and I'm trying to execute a complicated geolocation query for a store locator feature. It should retrieve up to 5 locations within a distance D from a location (Point). It should also sort by distance, and…
Richard G
  • 5,243
  • 11
  • 53
  • 95
0
votes
1 answer

Custom SOLR Data Repository

I'm really having trouble with the JPA repository initialization using Spring Data Solr repository. I'm trying to add a custom repository for building a dynamic query. I've read a few stack overflow and other links that suggest the problem is that…
Richard G
  • 5,243
  • 11
  • 53
  • 95
0
votes
1 answer

Spring Data missing property error when initialising the SOLR repository

I'm relatively new to spring. I'm trying to set up the spring-data-solr package. I'm using this customer class for both the JPA persistence with hibernate, and for writing to SOLR via the SOLR Data adapter. It hasn't worked yet. When I start the…
Richard G
  • 5,243
  • 11
  • 53
  • 95
0
votes
1 answer

Slow Solr startup decompressing stored fields

I have an embedded solr server that I use in combination with Spring Data Solr. I have about 600k documents taking up 3GB. During startup Solr takes several minutes before the first query can execute. With VisualVM I've been able to track down the…
Kafkaesque
  • 1,233
  • 9
  • 13
0
votes
1 answer

Is paging broken with spring data solr when using group fields?

I currently use the spring data solr library and implement its repository interfaces, I'm trying to add functionality to one of my custom queries that uses a Solr template with a SimpleQuery. it currently uses paging which appears to be working…
user779420
  • 359
  • 2
  • 3
  • 12
0
votes
1 answer

Issue with saving objects using Spring Solr data

I have an application where I am using spring datasolr to save data. Now I have an object PhoneDocument that has lot of fields: String, boolean. They are getting properly saved in solr. Even Collection is getting properly saved in solr. How ever if…
sachin jain
  • 224
  • 1
  • 4
  • 16
0
votes
1 answer

How to facet.pivot with spring-data-solr

When declaring this method: @Query(value = "*:*") @Facet(pivotFields = {"type","status"}, limit = 10000) FacetPage findAllAndFacetOnTypeAndStatus(Pageable page); I get java.lang.IllegalStateException: 2 or more fields required for…
ramon_salla
  • 1,587
  • 1
  • 17
  • 35
0
votes
1 answer

How to migrate from Spring Data JPA to Spring Data Solr?

Is there a recommended way of migrating from Spring Data JPA to Spring Data Solr ? My spring mvc app works alright using Spring Data JPA but we now want blazing fast results delivered from our data access layer. Is there a (simple) tutorial that…
happybuddha
  • 1,271
  • 2
  • 20
  • 40
1 2 3
15
16