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

How to inject SolrOperations bean when implement custom Spring data solr repository?

I create a application using Spring boot, and I want to query and add documents to Solr. So I use Spring data solr for this, the maven dependency is: org.springframework.boot
BurnetZhong
  • 438
  • 1
  • 5
  • 14
1
vote
1 answer

Does spring-data-solr have a way to provide json.facet parameter?

As far as I can tell there is not a way to provide a facet.json to using spring-data-solr. What I would like is something like this: public interface FooRepository extends SolrCrudRepository { @Query(value = "name:?0") …
Daniel Moses
  • 5,872
  • 26
  • 39
1
vote
1 answer

Spring data solr and Solr 6.4.0: default search field

Solr 6.4.0 doesn't allow having default field in schema.xml and throws exception so this line must be removed: product_digest Removing it requires passing it with parameters explicitly. It's easy to do with…
rygel
  • 48
  • 5
1
vote
3 answers

Spring Boot health check for Spring Data Solr

I'm now using Spring Boot, there's a health check problem. I have multi-core using spring data solr, so the solr url is the base url, e.g. http://localhost:8983/solr, but the health check will call HttpSolrClient's ping method, which will return a…
winterfall
  • 164
  • 14
1
vote
1 answer

Is there any Querydsl like support present for Solr

I am using Spring Data solr for implementing solr search in our project, and our search criteria is dynamic which can change according to the fields user enters. I have gone to the official site of querydsl but it seems like they support lucene…
Naresh Joshi
  • 4,188
  • 35
  • 45
1
vote
1 answer

Exception in spring-solr-data showcase sample project

I get this exception when starting solr search example in spring data solr showcase (github link). I am using solr: 6.1.0 and the default collection gettingstarted where in have put xml documents in exampledocs directory of…
mesh
  • 849
  • 9
  • 16
1
vote
1 answer

How to search keyword as ignore case in spring data solr?

I need to search key word with ignore case and containing keyword with method name using spring data solr. like this PagefindByNameIgnoreCaseAndContaining(@Boost(2) String name, Pageable pageable); but its not working. It working like…
1
vote
1 answer

Spring Data Solr with Querydsl

Assuming I have a spring-data-jpa model classes annotated with solr annotations and I have generated querydsl classes to it (meaning that I can query spring-data-jpa repositories with querydsl's predicates)... Is it possible to query…
Piotr Tempes
  • 1,091
  • 1
  • 12
  • 26
1
vote
1 answer

Solr NonRepeatableRequestException in save action

I have configured Spring data solr 1.5.4 to use Apache Solr 5.2.1 and this is my configuration: @Bean public SolrTemplate solrTemplate() { return new SolrTemplate(solrServerFactory()); } @Bean public SolrServerFactory solrServerFactory() { …
Saeed Shahsavan
  • 35
  • 1
  • 10
1
vote
0 answers

Grails 3 with Spring Data Solr - returning a HighlightPage as Json/XML

I have integrated Spring Data Solr into a grails 3 app and most things work fine. My 'ModuleRepository' exposes most of its magic restful methods and returns nice HATEOAS style json responses. However I am running into issues with @Highlighted…
1977
  • 2,580
  • 6
  • 26
  • 37
1
vote
1 answer

Spring Data Solr + HATEOAS

playing with spring data solr here... I am able to return a page of results in HATEOAS format which is fine i.e. @RequestMapping("/findAllPaged") HttpEntity> findAllPaged(Pageable pageable, PagedResourcesAssembler assembler)…
1977
  • 2,580
  • 6
  • 26
  • 37
1
vote
2 answers

Atomic update not working Spring data solr

I have a Spring data solr project, and my repository class is a simple SolrCrudRepository. My question is how to make Spring data solr use atomic update feature of Solr 4. In other words, in order for atomic updates to work, what extra configuration…
Sathyakumar Seshachalam
  • 2,013
  • 3
  • 20
  • 32
1
vote
1 answer

Spring Data Solr: how to set multiValue to false when declaring a field

I am playing around with Spring Data Solr with Schemaless Solr. There are some dots I am not able to connect: when and how are the schema fields being created? The following page states Automatic schema population will inspect your domain types…
Klaus
  • 2,328
  • 5
  • 41
  • 62
1
vote
1 answer

Using new version of Spring data Solr with Spring boot

I'm using Spring Data Solr in a Spring boot application (1.2.7). Now, because of Spring Data Solr Precedence for Custom Repository I have to update Spring Data Solr to 1.4.x at least, while it's currently on 1.3.x. However, if I explicitely add the…
g00glen00b
  • 41,995
  • 13
  • 95
  • 133
1
vote
1 answer

how to add group field in @Query annotation in Solr

I have added a method to get quarters my repository class based on the value of book and year public interface Repository extends SolrCrudRepository { @Query(fields = { Constants.QUARTER_FIELD }) public List
Naresh Joshi
  • 4,188
  • 35
  • 45