# Hibernate Search

**URL:** https://discourse.hibernate.org/c/hibernate-search/6.md

[Latest](https://discourse.hibernate.org/latest.md) · [Categories](https://discourse.hibernate.org/categories.md)

---

## [Latest stable Hibernate Search version: see website](https://discourse.hibernate.org/t/latest-stable-hibernate-search-version-see-website/26)

<div class="topic-metadata">

**Author:** [@yrodiere](https://discourse.hibernate.org/u/yrodiere)\
**Replies:** 0\
**Last updated:** [January 2, 2018, 9:40pm UTC](https://discourse.hibernate.org/t/latest-stable-hibernate-search-version-see-website/26 "2018-01-02T21:40:21Z")

</div>

For information on the latest version, compatibility, how to get started, what’s new, etc., see: For migration instructions, see:

---

## [About the Hibernate Search category](https://discourse.hibernate.org/t/about-the-hibernate-search-category/13)

<div class="topic-metadata">

**Author:** [@gsmet](https://discourse.hibernate.org/u/gsmet)\
**Replies:** 0\
**Last updated:** [December 11, 2017, 10:01am UTC](https://discourse.hibernate.org/t/about-the-hibernate-search-category/13 "2017-12-11T10:01:36Z")

</div>

Discussions about Hibernate Search, the library that automatically indexes Hibernate ORM entities into Apache Lucene or Elasticsearch.

---

## [Cannot use Hibernate Search’s Standalone POJO and ORM Mapper in one application](https://discourse.hibernate.org/t/cannot-use-hibernate-search-s-standalone-pojo-and-orm-mapper-in-one-application/12370)

<div class="topic-metadata">

**Author:** [@thomn9](https://discourse.hibernate.org/u/thomn9)\
**Replies:** 2\
**Last updated:** [July 15, 2026, 8:24am UTC](https://discourse.hibernate.org/t/cannot-use-hibernate-search-s-standalone-pojo-and-orm-mapper-in-one-application/12370 "2026-07-15T08:24:41Z")

</div>

It seems there is some conflict between these two. I have everything configured as described in Getting started with Hibernate Search’s Standalone POJO Mapper but on app startup I am getting this error: Hibernate ORM …

---

## [Search 4.5.3 cannot obtain lock](https://discourse.hibernate.org/t/search-4-5-3-cannot-obtain-lock/12345)

<div class="topic-metadata">

**Author:** [@arnieAustin](https://discourse.hibernate.org/u/arnieAustin)\
**Replies:** 0\
**Last updated:** [June 12, 2026, 10:07pm UTC](https://discourse.hibernate.org/t/search-4-5-3-cannot-obtain-lock/12345 "2026-06-12T22:07:14Z")

</div>

Hibernate 4.5.3, Core 4.3. Running on RHEL 8. Why is this happening? \<Jun 12, 2026 4:12:36,837 PM CDT\> \<org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask\> \<HSEARCH000072: Couldn’t open the IndexWriter b…

---

## [Searching through enum set](https://discourse.hibernate.org/t/searching-through-enum-set/12194)

<div class="topic-metadata">

**Author:** [@horvoje](https://discourse.hibernate.org/u/horvoje)\
**Replies:** 2\
**Last updated:** [March 27, 2026, 4:29pm UTC](https://discourse.hibernate.org/t/searching-through-enum-set/12194 "2026-03-27T16:29:26Z")

</div>

Hi! I’m trying to implement indexing against set of enums. (Java 21 • Hibernate 7.3.0.Final • Hibernate Search 8.3.0.Final) public enum UserRole { ROLE\_ADMIN, ROLE\_EDITOR... } @Column( columnDefinition = "TE…

---

## [Repeating error: Lock obtain timed out:](https://discourse.hibernate.org/t/repeating-error-lock-obtain-timed-out/12138)

<div class="topic-metadata">

**Author:** [@arnieAustin](https://discourse.hibernate.org/u/arnieAustin)\
**Replies:** 3\
**Last updated:** [February 4, 2026, 2:28pm UTC](https://discourse.hibernate.org/t/repeating-error-lock-obtain-timed-out/12138 "2026-02-04T14:28:30Z")

</div>

We are using Hibernate ORM 4.3.11 and Search 4.3.0; hopefully that is a valid combo? Our WLS is restarted in an orderly manner every morning at 4:30. At 5 AM, we have a scheduled EJB that triggers a background full rebu…

---

## [Unclear message from hibernate search](https://discourse.hibernate.org/t/unclear-message-from-hibernate-search/12108)

<div class="topic-metadata">

**Author:** [@arnieAustin](https://discourse.hibernate.org/u/arnieAustin)\
**Replies:** 2\
**Last updated:** [January 19, 2026, 9:02pm UTC](https://discourse.hibernate.org/t/unclear-message-from-hibernate-search/12108 "2026-01-19T21:02:18Z")

</div>

org.hibernate.search.exception.AssertionFailure: Unable to find service related to class org.hibernate.search.hcore.impl.MassIndexerFactoryProvider Using ORM 4.3.11 and Search 4.5.3.Final on JDK 1.8. Can someone transl…

---

## [Elastic search LOOKUP JOIN support](https://discourse.hibernate.org/t/elastic-search-lookup-join-support/12101)

<div class="topic-metadata">

**Author:** [@Ondrej\_Laga](https://discourse.hibernate.org/u/Ondrej_Laga)\
**Replies:** 1\
**Last updated:** [January 15, 2026, 9:51am UTC](https://discourse.hibernate.org/t/elastic-search-lookup-join-support/12101 "2026-01-15T09:51:04Z")

</div>

Is there a plan to support elastic search LOOKUP JOIN in Hibernate Search?

---

## [Hibernate Lucene 8.1.1 Final Java 17 Composite Aggregations throw NPE when no aggregation result is found](https://discourse.hibernate.org/t/hibernate-lucene-8-1-1-final-java-17-composite-aggregations-throw-npe-when-no-aggregation-result-is-found/11786)

<div class="topic-metadata">

**Author:** [@brandsi](https://discourse.hibernate.org/u/brandsi)\
**Replies:** 5\
**Last updated:** [September 9, 2025, 1:26pm UTC](https://discourse.hibernate.org/t/hibernate-lucene-8-1-1-final-java-17-composite-aggregations-throw-npe-when-no-aggregation-result-is-found/11786 "2025-09-09T13:26:20Z")

</div>

We are using Hibernate with Lucene Backend 8.1.1 Final After indexing our data, I am creating a composite with multiple aggregations with f.sum() on which I add a .filter() because I only want to target certain elements…

---

## [Integration with Hibernate Reactive](https://discourse.hibernate.org/t/integration-with-hibernate-reactive/6868)

<div class="topic-metadata">

**Author:** [@tibersept](https://discourse.hibernate.org/u/tibersept)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 3:33pm UTC](https://discourse.hibernate.org/t/integration-with-hibernate-reactive/6868 "2022-11-04T15:33:46Z")

</div>

Does Hibernate Search support integration with Hibernate Reactive? The setup that I have is an existing Quarkus project with Hibernate Reactive. I tried to create a POC with Hibernate Search, thought that it would have …

---

## [Search with Multiple Persistence Units and index locations](https://discourse.hibernate.org/t/search-with-multiple-persistence-units-and-index-locations/11769)

<div class="topic-metadata">

**Author:** [@arnieAustin](https://discourse.hibernate.org/u/arnieAustin)\
**Replies:** 2\
**Last updated:** [August 26, 2025, 2:14pm UTC](https://discourse.hibernate.org/t/search-with-multiple-persistence-units-and-index-locations/11769 "2025-08-26T14:14:07Z")

</div>

I have a legacy project with multiple persistence units. Some XA some regular. Some reference the same orm.xml, others a different orm.xml. Using Hibernate Search 4.5.3. I’m seeing a lot these during deployment: Start…

---

## [Can index definition be overridden?](https://discourse.hibernate.org/t/can-index-definition-be-overridden/11641)

<div class="topic-metadata">

**Author:** [@Damian](https://discourse.hibernate.org/u/Damian)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 5:10pm UTC](https://discourse.hibernate.org/t/can-index-definition-be-overridden/11641 "2025-07-10T17:10:46Z")

</div>

I have been working on integrating Hibernate Search using the Standalone POJO Mapper in order to replace an old custom implementation. Initially it is going well but I came up with an issue that it is related to the fol…

---

## [addToTotalCount() deprecated](https://discourse.hibernate.org/t/addtototalcount-deprecated/11630)

<div class="topic-metadata">

**Author:** [@horvoje](https://discourse.hibernate.org/u/horvoje)\
**Replies:** 1\
**Last updated:** [July 9, 2025, 7:12am UTC](https://discourse.hibernate.org/t/addtototalcount-deprecated/11630 "2025-07-09T07:12:35Z")

</div>

I’m trying to understand how to get rid of deprected method addToTotalCount() in my Mass Indexing Monitor but with no success. package com.thevegcat.app.search; import java.util.concurrent.atomic.AtomicLong; import jav…

---

## [Error creating bean with name ‘entityManagerFactory’ defined in class path resource](https://discourse.hibernate.org/t/error-creating-bean-with-name-entitymanagerfactory-defined-in-class-path-resource/4675)

<div class="topic-metadata">

**Author:** [@schoppara](https://discourse.hibernate.org/u/schoppara)\
**Replies:** 2\
**Last updated:** [October 20, 2020, 6:55am UTC](https://discourse.hibernate.org/t/error-creating-bean-with-name-entitymanagerfactory-defined-in-class-path-resource/4675 "2020-10-20T06:55:04Z")

</div>

I am trying to start a spring boot application that should connect to ElasticSearch using Hiberate Search. I am facing the error and could not able to understand the root cause of it. Your help is greatly appreciated Er…

---

## [Hibernate Search upgrade from 7.2.4 to 8.0.0](https://discourse.hibernate.org/t/hibernate-search-upgrade-from-7-2-4-to-8-0-0/11574)

<div class="topic-metadata">

**Author:** [@horvoje](https://discourse.hibernate.org/u/horvoje)\
**Replies:** 5\
**Last updated:** [June 19, 2025, 7:04pm UTC](https://discourse.hibernate.org/t/hibernate-search-upgrade-from-7-2-4-to-8-0-0/11574 "2025-06-19T19:04:59Z")

</div>

Hi! When I try to upgrade Hibernate Search from 7.2.4 to 8.0.0 there is an error preventing application start: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* APPLICATION FAILED TO START \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Description: An attemp…

---

## [Jakarta Batch JobListener for MassIndexingJob](https://discourse.hibernate.org/t/jakarta-batch-joblistener-for-massindexingjob/10883)

<div class="topic-metadata">

**Author:** [@firefly](https://discourse.hibernate.org/u/firefly)\
**Replies:** 4\
**Last updated:** [June 14, 2025, 7:20pm UTC](https://discourse.hibernate.org/t/jakarta-batch-joblistener-for-massindexingjob/10883 "2025-06-14T19:20:40Z")

</div>

Hi there! I am using the Jakarta Batch mass-indexing job and I’ve encountered the following problem now: I need to use the Jakarta Job Listener, specifically the afterJob() method as I want to be able to retrieve the t…

---

## [Odd code setup question](https://discourse.hibernate.org/t/odd-code-setup-question/11504)

<div class="topic-metadata">

**Author:** [@arnieAustin](https://discourse.hibernate.org/u/arnieAustin)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 7:31am UTC](https://discourse.hibernate.org/t/odd-code-setup-question/11504 "2025-06-03T07:31:54Z")

</div>

I need to add search to an existing application which has several modules. The older one was recently refactored from CMP to JPA using the orm/persistence files, while one of the new modules is Spring-based and contains …

---

## [NHibernate-search Sort with Analyzer](https://discourse.hibernate.org/t/nhibernate-search-sort-with-analyzer/11437)

<div class="topic-metadata">

**Author:** [@kasap](https://discourse.hibernate.org/u/kasap)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 3:37pm UTC](https://discourse.hibernate.org/t/nhibernate-search-sort-with-analyzer/11437 "2025-05-12T15:37:58Z")

</div>

Hello everyone, I’m trying to sort a field with lowercase and with their full content in NHibernate-Search. I downloaded the code from NHibernate-Search github directory, to update our codebase to latest NHibernate ver…

---

## [Indexes in db drives to faster massindexer?](https://discourse.hibernate.org/t/indexes-in-db-drives-to-faster-massindexer/11322)

<div class="topic-metadata">

**Author:** [@Tony](https://discourse.hibernate.org/u/Tony)\
**Replies:** 2\
**Last updated:** [April 4, 2025, 1:08pm UTC](https://discourse.hibernate.org/t/indexes-in-db-drives-to-faster-massindexer/11322 "2025-04-04T13:08:37Z")

</div>

Hi. I use hibernate search 6.1.8. In the fields that I have @Genericfield is it necessary to have an index in the database for better performance both in massindexer and in procedures for updating an object ?

---

## [Get row where one element of an array satisfies the condition](https://discourse.hibernate.org/t/get-row-where-one-element-of-an-array-satisfies-the-condition/11275)

<div class="topic-metadata">

**Author:** [@Sspw](https://discourse.hibernate.org/u/Sspw)\
**Replies:** 4\
**Last updated:** [March 25, 2025, 3:59pm UTC](https://discourse.hibernate.org/t/get-row-where-one-element-of-an-array-satisfies-the-condition/11275 "2025-03-25T15:59:50Z")

</div>

Hello everyone, I have a jsonb structure which contains an array of elements. Those elements have an ‘idElem’, ‘typeElem’ and ‘deleteDate’. I wish to get the whole row if the id and the type match a certain value and if…

---

## [Tomcat parallel deployment and locked Lucene index](https://discourse.hibernate.org/t/tomcat-parallel-deployment-and-locked-lucene-index/11239)

<div class="topic-metadata">

**Author:** [@horvoje](https://discourse.hibernate.org/u/horvoje)\
**Replies:** 2\
**Last updated:** [March 18, 2025, 9:57pm UTC](https://discourse.hibernate.org/t/tomcat-parallel-deployment-and-locked-lucene-index/11239 "2025-03-18T21:57:42Z")

</div>

Tomcat 8 supports parallel deployment which means two versions of the same application can be active and Tomcat handles connections: users having a session are redirected to old app version and new users with no sessio…

---

## [No results returned on search with words like 'G01S 5/45'](https://discourse.hibernate.org/t/no-results-returned-on-search-with-words-like-g01s-5-45/11233)

<div class="topic-metadata">

**Author:** [@Arvind\_C\_SIDHU](https://discourse.hibernate.org/u/Arvind_C_SIDHU)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 1:02pm UTC](https://discourse.hibernate.org/t/no-results-returned-on-search-with-words-like-g01s-5-45/11233 "2025-03-18T13:02:16Z")

</div>

in database we have G01S 5/45 . its stored in hibernate search 7.1.1 while indexing.But when we are searching no results are returned. please help on this. below is field in entity class: @FullTextField(name = “symbol”…

---

## [Does version 7.2.2Final allow for OpenSearch match\_only\_text Field?](https://discourse.hibernate.org/t/does-version-7-2-2final-allow-for-opensearch-match-only-text-field/11165)

<div class="topic-metadata">

**Author:** [@simi](https://discourse.hibernate.org/u/simi)\
**Replies:** 2\
**Last updated:** [March 7, 2025, 1:17pm UTC](https://discourse.hibernate.org/t/does-version-7-2-2final-allow-for-opensearch-match-only-text-field/11165 "2025-03-07T13:17:59Z")

</div>

I’m looking at moving one of our applications to the following: Spring-Boot 3.4.2 Hibernate Search 7.2.2.Final AWS OpenSearch 2.15 (from OS 1.2) I came across this article on the the OpenSearch match\_only\_text field i…

---

## [Wrong order of documents updated in ES and database](https://discourse.hibernate.org/t/wrong-order-of-documents-updated-in-es-and-database/11095)

<div class="topic-metadata">

**Author:** [@johnny](https://discourse.hibernate.org/u/johnny)\
**Replies:** 13\
**Last updated:** [February 28, 2025, 10:03am UTC](https://discourse.hibernate.org/t/wrong-order-of-documents-updated-in-es-and-database/11095 "2025-02-28T10:03:37Z")

</div>

Hi, I am observing sometimes strange behavior (inconsistency) when I do fast changes (milliseconds) in database for the same record. I create record in database that results in OpenSearch call: curl -iX POST ‘https:…

---

## [Jakarta Batch not working in native mode with JBeret](https://discourse.hibernate.org/t/jakarta-batch-not-working-in-native-mode-with-jberet/11107)

<div class="topic-metadata">

**Author:** [@qdesbin](https://discourse.hibernate.org/u/qdesbin)\
**Replies:** 3\
**Last updated:** [February 21, 2025, 3:32pm UTC](https://discourse.hibernate.org/t/jakarta-batch-not-working-in-native-mode-with-jberet/11107 "2025-02-21T15:32:03Z")

</div>

Hi here, Thanks for the huge work for these modules. I’m using hibernate-search-orm with elastic backend in Quarkus framework. For some reasons, sometimes I want to mass reindex using a MassIndexingJob. I used org.hib…

---

## [Outbox-Polling Coordination: Agents Stop Sending Heartbeats and Die](https://discourse.hibernate.org/t/outbox-polling-coordination-agents-stop-sending-heartbeats-and-die/10866)

<div class="topic-metadata">

**Author:** [@s.akhavan](https://discourse.hibernate.org/u/s.akhavan)\
**Replies:** 10\
**Last updated:** [January 27, 2025, 7:57am UTC](https://discourse.hibernate.org/t/outbox-polling-coordination-agents-stop-sending-heartbeats-and-die/10866 "2025-01-27T07:57:32Z")

</div>

Hi everyone, I am using Spring Boot (version 3.3.2) with Hibernate Search (version 7.2.0.Final) and Elasticsearch in my project. My current setup involves the outbox-polling coordination strategy to handle indexing oper…

---

## [Hibernate search coordination strategy. Can we intercept the event creating process in order to define priority order of events?](https://discourse.hibernate.org/t/hibernate-search-coordination-strategy-can-we-intercept-the-event-creating-process-in-order-to-define-priority-order-of-events/10872)

<div class="topic-metadata">

**Author:** [@tushar\_kirmate](https://discourse.hibernate.org/u/tushar_kirmate)\
**Replies:** 3\
**Last updated:** [January 15, 2025, 8:45am UTC](https://discourse.hibernate.org/t/hibernate-search-coordination-strategy-can-we-intercept-the-event-creating-process-in-order-to-define-priority-order-of-events/10872 "2025-01-15T08:45:33Z")

</div>

Hello, My requirement is. I want to give highest priority to the events generated by performing CRUD operation on main entity and lower priority to the events generated (on main entity )by performing CRUD operations on…

---

## [Hibernate search with multiple data bases](https://discourse.hibernate.org/t/hibernate-search-with-multiple-data-bases/10846)

<div class="topic-metadata">

**Author:** [@Joseph\_Maina](https://discourse.hibernate.org/u/Joseph_Maina)\
**Replies:** 2\
**Last updated:** [January 6, 2025, 11:04am UTC](https://discourse.hibernate.org/t/hibernate-search-with-multiple-data-bases/10846 "2025-01-06T11:04:53Z")

</div>

Hi everyone, I’m working on a microservice architecture that utilizes Hibernate Search with an Elasticsearch backend. Only the local entity is indexed. Here’s the relevant configuration from my application YAML file: s…

---

## [Hibernate Search 7.2 custom analyzer not being considered](https://discourse.hibernate.org/t/hibernate-search-7-2-custom-analyzer-not-being-considered/10812)

<div class="topic-metadata">

**Author:** [@R\_M](https://discourse.hibernate.org/u/R_M)\
**Replies:** 1\
**Last updated:** [December 23, 2024, 10:14am UTC](https://discourse.hibernate.org/t/hibernate-search-7-2-custom-analyzer-not-being-considered/10812 "2024-12-23T10:14:41Z")

</div>

Using: Hibernate Search 7.2.2 OpenSearch 2.15 Spring Boot 3.3.4 I have no idea why the custom analyzer is not being taken into consideration, as in my opinion the configuration in my code looks fine. P.S: index does…

---

## [How to use annotations to read two files and index the connection into multiple fields](https://discourse.hibernate.org/t/how-to-use-annotations-to-read-two-files-and-index-the-connection-into-multiple-fields/10751)

<div class="topic-metadata">

**Author:** [@matthias-ronge](https://discourse.hibernate.org/u/matthias-ronge)\
**Replies:** 3\
**Last updated:** [December 11, 2024, 11:31am UTC](https://discourse.hibernate.org/t/how-to-use-annotations-to-read-two-files-and-index-the-connection-into-multiple-fields/10751 "2024-12-11T11:31:50Z")

</div>

I have the following Java code that generates our indexing words: @Entity @Indexed(index = "process") @Table(name = "process") public class Process extends BaseTemplateBean { // \[... a lot of unrelated stuff ...\] …

[Next page](https://discourse.hibernate.org/c/hibernate-search/6.md?page=1)
