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
2
votes
2 answers

Change default query fields in SolrCloud using the API

I'm using SolrCLoud is to search documents with multiple attributes. In my application, I would like to search over all the fields if the query does not specify any specific field such term1 AND term2 query should search for that combination in all…
ypriverol
  • 585
  • 2
  • 8
  • 28
2
votes
1 answer

No converter found capable of converting from type [java.lang.String] to type [org.springframework.data.solr.core.geo.Point]

I am trying to use spring-data-solr in order to access to my Solr instance through my Spring boot application. I have the following bean class: @SolrDocument(solrCoreName = "associations") public class Association implements PlusimpleEntityI { …
Alessandro Suglia
  • 1,907
  • 1
  • 16
  • 23
2
votes
2 answers

Spring Solr - Using multiple clients to different services

I am working with an application that aggregates data from multiple sources. In this case I need to connect to two different Solr services with unrelated data. To this end I set up two different data repositories. I have defined the beans as…
Bill
  • 2,623
  • 1
  • 27
  • 41
2
votes
2 answers

spring-data-solr creating wrong url. Adding core name twice

In my spring-data-solr project, Im getting org.springframework.data.solr.UncategorizedSolrException: Error from server at http://localhost:8983/solr/preauth: Expected mime type application/octet-stream but got text/html. The URL that gets…
Kazi
  • 113
  • 2
  • 13
2
votes
0 answers

Solr : deleted records reappear in index

I have created a CRUD application with Solr using for searching records and spring solr data is used to interact with Solr. when when the application starts up I add data to solr index. After starting up I delete a record from the index via Spring…
tharindu_DG
  • 8,900
  • 6
  • 52
  • 64
2
votes
1 answer

AbstractMethodError when creating custom Solr Query in Spring Data Solr 1.5.4

I am using Spring Boot 1.4, Spring Data JPA 1.10.2, Spring Data Solr 1.5.4 and Solr 4.10.4 in my project. The communication between my program and Solr works fine so far. I can save() and findAll()using the methods provided by the…
Sebastian
  • 858
  • 7
  • 21
2
votes
2 answers

Spring data solr always create multivalued fields

I'm working with solr5.5.1 and spring-data-solr 1.4.2.RELEASE. I have configured the spring data solr with my working project and working fine. But when i insert data to solr using model class, it automatically update the managed-schema file with…
2
votes
3 answers

Embedded Solr server - how to use a different core name

I have a spring boot application where I am embedding a solr server. I seem to be forced right now to name my solr core as "collection1" so that my code indeed finds the core to load anyone know how I can make this arbitrary…
1977
  • 2,580
  • 6
  • 26
  • 37
2
votes
0 answers

Spring Data Solr Repository Highlight HATEOAS

I have defined a @Highlight query on my Solr repository class which returns the interesting 'snipplets' info if I call it from another class/controller. However if I access the method through the implicit rest service exposed via…
1977
  • 2,580
  • 6
  • 26
  • 37
2
votes
1 answer

Using POST method for big queries in Spring Data Solr

I am using Spring Data Solr in my project. In some cases generated queries to Solr are too big (e.g.15Kb+) and cause Solr exceptions. This solution:…
VVY
  • 21
  • 4
2
votes
1 answer

Do highlight and facet query with one request in spring data solr

How do I combine a query in spring data solr to get a page as a result which contains highlighting and faceting? Right now I have to make two requests and combine the result. I use a custom repository implementation: @Override public Page
dve
  • 371
  • 2
  • 16
2
votes
2 answers

Embedded Solr- UnsatisfiedDependencyException (Solr Server seems fine)

Getting an Exception with the latest version of Solr 5.0. Goes away with a downgrade to an earlier release(4.10.4) but the version has its own problems (see Exception No.2). SolrConfig Class public class SolrEmbeddedConfig { @Autowired …
Jamie White
  • 1,560
  • 3
  • 22
  • 48
2
votes
1 answer

Pivot faceting with Spring-data-solr using SolrTemplate

How is it possible to add a facet pivot using solrTemplate with spring-solr-data? This question is related to How to facet.pivot with spring-data-solr but I am looking for a solution using solrTemplate.
lizzie
  • 1,506
  • 1
  • 18
  • 31
2
votes
1 answer

Injecting Repository using Spring-Data-Solr

I am pretty new to Spring and thought I would try spring-data-solr. The problems seem to happen when I try to inject my TeamRepository which is an empty inteface which extends SolrCrudRepository. I've tried using annotatedConfiguration &…
James Owen
  • 256
  • 1
  • 11
2
votes
2 answers

Solr stop words replaced with _ symbol

I have problems with solr stopwords in my autosuggest. All stopwords was replaced by _ symbol. For example I have text "the simple text in" in field "deal_title". When I try to search word "simple" solr show me next result "_ simple text _" but I…
Alex Sylka
  • 55
  • 1
  • 1
  • 9