spring-data-solr

How to configure multiple contextfields in single solr suggester?

梦想与她 提交于 2020-06-11 08:38:24
问题 I am using apache solr to search records in my current application. And I was able to filter the suggesions based on DocumentType by configuring the context field. Now I want to add another context field like departmentType. I am not sure how to configure the suggester for multiple context fields. This is the suggester that used with single context fields and this is working fine. <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name"

indexing document to a specific collection using spring data solr

▼魔方 西西 提交于 2020-01-15 09:04:54
问题 I am trying to index a document to a specific collection in solr. The collection name is 'program'. I am using spring data solr. I am getting the below error when trying to save the document: HTTP ERROR 404 Problem accessing /solr/update. Reason:Not Found My assumption is that the annotation @SolrDocument is not recognized. spring-data-solr is trying to post the document to /solr/update whereas it should try to post it to /solr/program/update.However I am not sure how to prove it or fix it.

java.lang.VerifyError: Cannot inherit from final class when using spring boot data solr

≡放荡痞女 提交于 2020-01-07 07:42:32
问题 I have a rest web service that running with spring boot 1.4.2.RELEASE. I trying to use spring data solr with my project but I am getting a VerifyError. Caused by: java.lang.VerifyError: Cannot inherit from final class at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_40-ea] at java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[na:1.8.0_40-ea] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_40-ea] at java.net.URLClassLoader.defineClass

How to facet.pivot with spring-data-solr

China☆狼群 提交于 2020-01-06 06:57:10
问题 When declaring this method: @Query(value = "*:*") @Facet(pivotFields = {"type","status"}, limit = 10000) FacetPage<SolrCrimeServer> findAllAndFacetOnTypeAndStatus(Pageable page); I get java.lang.IllegalStateException: 2 or more fields required for pivot facets at org.springframework.util.Assert.state(Assert.java:385) at org.springframework.data.solr.core.query.FacetOptions.addFacetOnPivot(FacetOptions.java:150) at org.springframework.data.solr.repository.query.AbstractSolrQuery

Hibernate Search vs spring-data-solr , spring-data-elasticsearch

孤者浪人 提交于 2019-12-31 03:26:07
问题 I have a spring boot, Spring Data JPA (hibernate) web application and want to introduce text search feature. I understand the following Both hibernate search or spring-data-* can be integrated into my app Hibernate search can work with embedded Lucene or external elastic search. External elastic search/ solr has its own benefits, but I am ok with embedded also to start with. My questions Which library is better for easy development and maintenance. I see many pros and cons of solr vs

No qualifying bean of type 'java.lang.Class<org.springframework.data.repository.Repository<?, ?>>'

 ̄綄美尐妖づ 提交于 2019-12-25 18:41:18
问题 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 conflict with neo4j. If I remove spring-neo4j from project, error (see below) seem to go away. I have a attached a sample project that recreates the issue. Run Test Class AccountServiceJpaTester.testSaveAccount() Download sample project from here

Name Search on Solr

妖精的绣舞 提交于 2019-12-25 03:52:59
问题 Apologies if I am posting a duplicated question, if so please point me to original question. I am a solr novice and trying to achieve ordered word name search using solr.I am expecting following response from solr Name Search Term Result Thomas Alva Edison Thomas Match Thomas Alva Edison Alva Match Thomas Alva Edison Edison Match Thomas Alva Edison Thomas Edison Match Thomas Alva Edison Thomas Alva Match Thomas Alva Edison Alva Edison Match Thomas Alva Edison Thomas Alva Edison Match Thomas

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

感情迁移 提交于 2019-12-25 02:55:57
问题 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<String, String> values; It flatten and serializes my map in Solr as follow: "key1" : "value1" "key2" : "value2" ... However, when I run a search, the returned objects have this field always set as NULL. Deserialization does not work on this particular field, it looks like it does not recognize the key1, key2...

Does Solr 7.x have support for Java 11?

匆匆过客 提交于 2019-12-24 01:12:51
问题 Currently our applications runs with Spring Data Solr + Apache Solr 5.3 + Java 8 We are upgrading our systems to Java 11. Does Spring Data Solr & Apache Solr latest version support Java 11 ? 回答1: Solr 7.6 supports "Java 8 or greater". However . . . . As per the Solr News it looks like 10 is tested and supported Java is generally backwards compatible although Java 11 release notes might suggest has some backwards compatibility issues that might trip folks up in general This ticket in the Solr

Spring Data Solr with Solr 4.1 multicores

送分小仙女□ 提交于 2019-12-23 04:29:06
问题 Trying to implement Spring-Data-Solr with Solr 4.1 multicores, At server startup getting following exception, I guess it expecting a default constructor somewhere. So, is there a limitation of spring-data-solr with solr muticores implementation, here is my implementation, repositories public interface MembershipDocumentRepository extends CustomMembershipDocumentRepository, SolrCrudRepository<MembershipDocument, String> { } created 'repository' manually instead of autowiring/injection.......