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 write query using spring-data-solr which return list of all values of specific field

I want to write a query that gets list of all values of one field in the documents (no conditions at all). I try the following code: @Query(fields = { "car_company_s" }) List findAllCarCompeny(); But it didn't work, I got the following…
nufar
  • 77
  • 2
  • 8
0
votes
1 answer

MoreLikeThisQuery using SolrTemplate in Spring data

My question is very simple, can a More like this query be performed using SolrTemplate in Spring data? I cannot find the class MoreLikeThisQuery like the one in Elastic Search. Thanks in advance.
italktothewind
  • 1,950
  • 2
  • 28
  • 55
0
votes
0 answers

how to get suggestiongs with spring_data_solr?

I can get the result I want when I query in the administration console like below. enter image description here But how can I get the response in spring_data_solr? I tried to use SpellcheckPage to receive the result, but somehow I couldn't get the…
0
votes
1 answer

Validating Solr queries against a schema

I would like to validate queries against a schema before actually executing them. Is there an official API which will give me access to a schema, or will I have to parse the Solr configuration XML myself?
Peter Hall
  • 53,120
  • 14
  • 139
  • 204
0
votes
2 answers

Spring-Data-SOLR: Stats result on SimpleQuery won't return me distinct calcs

I'm trying to use a SimpleQuery to get distinct result from my solr collection, but even after setting my StatsOption with calcDistinct true, I can't get the result I want. BTW I'm using spring-data-solr-2.1.4.RELEASE. SampleCode: Field field = new…
0
votes
1 answer

SOLR error java.lang.ClassCastException during indexing

Here is my SOLR Data Model, @SolrDocument(solrCoreName = "solrData") public class SolrData { @Id @Indexed(name = "id", type = "string") String id; @Indexed(name = "name", type = "string") String name; This SOLR…
Tareq
  • 443
  • 1
  • 6
  • 21
0
votes
1 answer

Does spring data solr support json.facet?

Can I write the facet query like this in spring-data-solr? json.facet={ "topic_aggr":{ "type": "terms", "field": "topic_ss", "limit": 10, "numBuckets": true, "allBuckets": true, "facet": { …
CuteDoge
  • 109
  • 1
  • 2
  • 8
0
votes
2 answers

Configure Spring Data Solr with multiple cores

I'm having issues upgrading my solr configuration from 1.5.4 to 3.0.0.M4 (along with a Spring Boot update to 2.0.0.M2). Previous config file (spring-data-solr 1.5.4.RELEASE): @Configuration @EnableSolrRepositories(value =…
Christophe Douy
  • 813
  • 1
  • 11
  • 27
0
votes
3 answers

How Indexing nested documents using spring solr data

can anybody help me to explain how I can index nested documents? I'am using the lastest version of spring-data-solr , I have a document with a List and annoted as follow: @Indexed(required = true,stored = true) @Field(child = true,value =…
0
votes
1 answer

How do i configure multiple cores on embedded solr with raw spring-data-solr

I would like to add another core to my Solr 5.5.0 embedded server environment. "In my world" i create an embedded server and let spring-data load the core configurations. But with my solution it seems that all data go into the default core…
Per Newgro
  • 93
  • 2
  • 11
0
votes
1 answer

spring-data-solr java.lang.IllegalArgumentException: Not a managed type

i am using spring-data-solr, but i can't make it to work :(.. i am still new to spring, i think i setup every thing, can you help me please. thank you very much *************************** APPLICATION FAILED TO START *************************** …
shay te
  • 1,028
  • 3
  • 12
  • 23
0
votes
1 answer

How to get full term in Spring Solr Data

I'm using Spring data solr and refer this link: https://github.com/christophstrobl/spring-data-solr-showcase In my table, I want to get full term of row: example, table city: id: 1 name: San Francisco interface: interface ProductRepository…
Khanh Luong Van
  • 476
  • 3
  • 14
  • 31
0
votes
1 answer

org.springframework.data.solr.UncategorizedSolrException: Collection not found

I am using spring-data-solr to query indexed Solr data running on a Hadoop cluser. The name of my collection is party_name. Below is the code I used to configure the Cloud client: @Configuration @EnableSolrRepositories(basePackages = {…
0
votes
1 answer

No qualifying bean of type 'java.lang.Class>'

Application depends on a number of spring data projects including Neo4j, Solr and Jpa. I recently had to update spring-data-solr to Snapshot-3.0.0.M1 (to eliminate another dependency conflict). I think one of the transitive dependency is causing a…
Jamie White
  • 1,560
  • 3
  • 22
  • 48
0
votes
1 answer

How to intergrate Spring data solr and Spring mvc

I'm facing the problem when intergrate Spring data solr and Spring mvc. If just use spring data solr, everything are run fine, but to intergrate spring mvc I have seen the problem about configure of Spring mvc. Repository class: public class…
Khanh Luong Van
  • 476
  • 3
  • 14
  • 31