hibernate-search

Hibernate Search's Initial MassIndexer not working with Wepshphere 8.5, but works fine on TOMCAT

人走茶凉 提交于 2020-04-18 00:55:10
问题 We are trying to create the initial elastic search indexes with hibernate search. Below are the configuration on our system and the exception we are facing. First the configuration: hibernate.cfg.xml: jdbc/dataSource <property name="dialect">com.csc.pt.hiber.MSSQLDialect2012</property> <!-- Session/Transaction --> <property name="hibernate.current_session_context_class">thread</property> <property name="transaction.jta.platform" >org.hibernate.service.jta.platform.internal

Hibernate Search's Initial MassIndexer not working with Wepshphere 8.5, but works fine on TOMCAT

落爺英雄遲暮 提交于 2020-04-18 00:51:26
问题 We are trying to create the initial elastic search indexes with hibernate search. Below are the configuration on our system and the exception we are facing. First the configuration: hibernate.cfg.xml: jdbc/dataSource <property name="dialect">com.csc.pt.hiber.MSSQLDialect2012</property> <!-- Session/Transaction --> <property name="hibernate.current_session_context_class">thread</property> <property name="transaction.jta.platform" >org.hibernate.service.jta.platform.internal

Facing error TranManagerSet incompatible with TransactionManager On Websphere 8.5. Creating Hibernate Search Index

时光怂恿深爱的人放手 提交于 2020-04-17 20:29:08
问题 I am trying to perform the initial indexing on Elastic server using Hibernate Search, Lucene and using persistence.xml file. The server raises below exception when I run the index creation process on Websphere, this whole process works fine on TOMCAT & TC server. That too only with help of hibernate.cfg.xml. We also have the hibernate.cfg.xml file in the project. I've also put an earlier question when this was not working with hibernate.cfg.xml and was throwing errors. This is the earlier

How to boost hibernate-search query with field values?

回眸只為那壹抹淺笑 提交于 2020-02-25 05:40:09
问题 I have two fields in an entity class: establishmentName contactType contactType has values like PBX, GSM, TEL and FAX I want a scoring mechanism as to get the most matching data first then PBX, TEL, GSM and FAX. Scoring: On establishmentName to get the most matching data first On contactType to get first PBX then TEL and so on My final query is: (+establishmentName:kamran~1^2.5 +(contactType:PBX^2.0 contactType:TEL^1.8 contactType:GSM^1.6 contactType:FAX^1.4)) But it not returning the result.

DuplicateFilter in Hibernate Search

筅森魡賤 提交于 2020-02-24 12:31:11
问题 I know there is a built-in DuplicateFilter in Lucene, to deduplicate the results from lucene. This is a very important feature for the users to search on the document database, where duplicating rate is very high. As I am using Hibernate Search to do the full text index/search, and wondering if there is a way for me bring the DuplicateFilter on Lucene to the Hibernate Search? 回答1: It is possible by using filters. See for BestDriversFilter - it extends org.apache.lucene.search.Filter in the

NoSuchMethodException thrown by AnnotationValidationInterceptor when executing an action

点点圈 提交于 2020-02-07 06:46:08
问题 Details of jars used: Struts2 2.2.1 Spring 3.0.5.RELEASE Hibernate 3.6.0.FINAL I am experiencing a strange issue when trying to execute an action mapped as follows: <action name="supplierSearch" class="supplierSearchAction"> <result>/pages/suppliersearch.jsp</result> </action> <action name="searchForSupplier" class="supplierSearchAction" method="doSearch"> <result>/pages/suppliersearch.jsp</result> </action> the first action sends the user to a search page, they enter a search string and then

Error on using a custom bridge of hibernate-search

杀马特。学长 韩版系。学妹 提交于 2020-01-24 21:23:06
问题 I have two entities: @Indexed @Entity @Table(name = "LK_CONTACT_TYPE") public class ContactTypeEntity { @Id @Column(name = "ID") @DocumentId Integer id; @SortableField @Field(store = Store.YES, bridge = @FieldBridge(impl = ContactTypeComparator.class)) @Column(name = "NAME") String name; getter() .. setter().. } @Indexed @Entity @Table(name = "DIRECTORY") public class DirectoryEntity { .... @IndexedEmbedded(prefix = "contactType.", includePaths = {"id", "name"}) @ManyToOne @JoinColumn(name =

Error while indexing in Hibernate Search (before transaction completion)

自闭症网瘾萝莉.ら 提交于 2020-01-24 18:16:11
问题 I am tired of banging my head around this problem So if anyone could suggest me where I am wrong I'll be grateful. The problem is I am using Spring-Batch and Hibernate Full-Text Search in my Spring MVC project.So from the batch job Tasklet I am calling following code: A a=aDao.merge(a); b.setA(a); bDao.save(b); While doing the save update on these entites I am getting an exception and the stacktrace is as follows: org.springframework.orm.hibernate3.HibernateSystemException: Error while

How to test services that use Hibernate Search?

我只是一个虾纸丫 提交于 2020-01-16 03:28:48
问题 I have JUnit4 test class, annotated with @Transactional with this method in it, along with other methods: @Test public void testDiscoverArtworksByTitle() { FullTextEntityManager ftem = Search.getFullTextEntityManager(this.entityManager); this.prepareArtworksForListing(); ftem.flushToIndexes(); List<ArtworkListItem> listItems = this.artworkService.discoverArtworksByTitle("Die Hard"); Assert.assertNotEquals("There are some items in the list", 0, listItems.size()); // housekeeping ftem.purgeAll

Lucene / Hibernate Search Lock Exception

雨燕双飞 提交于 2020-01-13 10:17:11
问题 I use Hibernate Search to index and full-text search items on a web application, problem-less! From my pom.xml: <hibernate.search.version>3.4.2.Final</hibernate.search.version> <apache.lucene.version>3.6.2</apache.lucene.version> <apache.solr.version>3.6.2</apache.solr.version> <hibernate.version>3.6.9.Final</hibernate.version> Now, before going to production I tried to stress test the search feature of my web-application using Apache JMeter. When testing with more then one thread, I receive