spring-data-solr

Using Spring Solr Data or Not for Flexible Requests as Like Backup?

杀马特。学长 韩版系。学妹 提交于 2019-12-23 03:17:13
问题 I want to implement an application at Spring that interacts with my current Solr or SolrCloud. I consider of using Spring Data Solr or not. However I think that there is no CloudSolrServer implemented at it yet on the other hand if I just run a query like that: http://localhost:8983/solr/replication?command=backup and check whether backup is completed or not(I will do a get request, parse JSON and will see that last backup time is changed or not) How I can integrate it with Spring Data Solr?

Implementing Tagging and Excluding Filters with Solrj / Spring Data Solr

倖福魔咒の 提交于 2019-12-20 02:34:54
问题 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 solr: q=mainquery&fq=status:public&fq={!tag=dt}doctype:pdf&facet=on&facet.field={!ex=dt}doctype I am not sure how to call this using solrj (java) as I don't want to add a simple filed but I need to include the tagging and excluding (!tag=dt and !ex=dt). Any ideas what the

How to integrate spring-data-jpa and spring-data-solr?

谁说胖子不能爱 提交于 2019-12-13 03:44:59
问题 To enable full text search, I ever used hibernate-search and solrJ, No I am trying spring-data-solr, but found I seems not working together with spring-data-jpa. I just can't make the configuration correct. If I add the following solr configuration xml to my project.I get error message. The config xml file of spring-data-solr is: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http

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

大城市里の小女人 提交于 2019-12-13 02:12:03
问题 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 whenever the applications context is refreshed and populate new fields to your index based on the properties configuration. This requires solr to run in Schemaless Mode. Use @Indexed to provide additional details like specific solr types to use. It

Solr stop words replaced with _ symbol

点点圈 提交于 2019-12-12 23:28:38
问题 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 expect "simple text". Could someone explain me why this works in such way and how to fix it ? Here is part of my schema.xml <fieldType class="solr.TextField" name="text_auto"> <analyzer type="index"> <charFilter class="solr.HTMLStripCharFilterFactory

Solr throwing rg.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got text/html

血红的双手。 提交于 2019-12-12 00:29:24
问题 I am using Solr + Spring Data Solr for Solr Indexing. I am getting following error when I am trying save the solr document. HTTP Status 500 - Request processing failed; nested exception is org.springframework.data.solr.UncategorizedSolrException: Expected mime type application/octet-stream but got text/html. Here is my code: Config: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:solr

SOLR Spring Data geospatial query

。_饼干妹妹 提交于 2019-12-11 20:25:45
问题 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 return the distance in the result. I can't figure out how to get the API to output the right query though. Could someone please guide me in how to use Spring SOLR Data API to get this query output correctly? I'm using SOLR 4+ geofilter feature. The

Difference between solr core & solrj & spring-data-solr

♀尐吖头ヾ 提交于 2019-12-11 12:38:18
问题 I have been trying to learn solr for implementing search for one of the application. There are three different libraries that i always bump into solr-core , solrj , and spring-data-solr what is the basic difference between three three jar and which is supposed to be used with spring? Recently i tried using solrj and solr-core with spring and got an StackOverflowException here is my question that resulted in stack overflow.Unable to find a solution i tried removing solr-core dependency and

Spring Data Solr Precedence for Custom Repository

余生颓废 提交于 2019-12-10 18:14:28
问题 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 = criteria.and(new Criteria("z").is(Z_VALUE); But running this code I get the following precedence: X OR (Y AND Z) Any ideas? 回答1: The current API does not allow this combination of criteria. There's a patch attached to DATASOLR-105 which could help though it

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

99封情书 提交于 2019-12-08 10:17:41
问题 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 a NoClassDefFoundError . Here is some relevant code. First the data model in package 'model': package model; import org.apache.solr.client.solrj.beans.Field; import org.springframework.data.annotation.Id; public class Theatre { @Id String id;