Questions tagged [hibernate-search]

Hibernate Search automatically extracts data from Hibernate ORM entities to push it to local Apache Lucene indexes or remote Elasticsearch indexes.

Hibernate Search provides synchronization between entities managed by Hibernate ORM and full-text indexing services like Apache Lucene and Elasticsearch.

It will automatically apply changes to indexes, which is tedious and error prone coding work, while leaving you full control on the query aspects. The development community constantly researches and refines the index writing techniques to improve performance.

Mapping your objects to the indexes is declarative, using a combination of Hibernate Search specific annotations and the knowledge it can gather from your existing Hibernate/JPA mapping.

Queries can be defined by any combination of:

  • "native" Apache Lucene queries
  • writing "native" Elasticsearch queries in JSON format (if using Elasticsearch, which is optional)
  • using a DSL which abstracts the previous two generating optimal backend specific queries

Query results can include projections to be loaded directly from the index, or can materialize fully managed Hibernate entities loaded from the database within the current transactional scope.

Hibernate Search is using Apache Lucene under the cover; this can be used directly (running embedded in the same JVM) or remotely provided by an Elasticsearch server over its REST API.

Hibernate Search is open source and contributions are welcome both as patches or comments and suggestions.

For latest news follow the Hibernate team blog.

1466 questions
-1
votes
1 answer

hibernate with lucene search index files are not created: IndexWriterConfig.setWriteLockTimeout(J)Lorg/apache/lucene/index/IndexWriterConfig;

I have a small project that I want to integrate with lucene and hibernate: This is the bean file: package com.domain.java; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import…
aurelianr
  • 538
  • 2
  • 12
  • 35
-1
votes
1 answer

RCA needs more information, using Hibernate Search

One of our customers, for whom we did custom development is facing this weird issue. though we are still only in pre-uat, we see this to be not conforming to any known Lucene behavior. We are using Hibernate Search 5.5.2, Apache Lucene 5.3.x; we are…
-1
votes
1 answer

comparison of hibernate-search and hibernate-core

I have some objects and I have two ways of storing them: using hibernate-search (lucene) with indexes, or as hibernate entities (postgres records). I don't need full text search per se, just searching by the properties values (exact match) and…
IttayD
  • 28,271
  • 28
  • 124
  • 178
-2
votes
1 answer

How do i disable elastic search and fall back to local filesystem storage in hibernate search 6

I am using Hibernate 6 with Amazons opensearch server in production. When i'm testing locally i don't want to use the opensearch server, instead i want to use local-filesystem to store the index files. However i can't hibernate search to use…
Maurice
  • 6,698
  • 9
  • 47
  • 104
-2
votes
1 answer

How to fix Hibernate Search createClient error?

I'm making online shop with Spring and I decided to add text-search there. I tried Hibernate Search using this guide https://reflectoring.io/hibernate-search/ and got an error while starting the app. Here's what I have (error) + my code…
Aftermaz
  • 29
  • 5
-2
votes
1 answer

Hibernate Search: persisting Lucene index into database

I am developing a Spring boot application which is using spring data JPA as a persistence layer. I would like to enable a full text search with hibernate search, but because of some constraints i would like to persist the Lucene index into the…
vuk
  • 91
  • 8
-2
votes
1 answer

Lucene: generateWordParts vs splitOnCaseChange

I am investigating WordDelimiterFilterFactory I am confusing about generateWordParts and splitOnCaseChange parameters. from java doc: generateWordParts: /** * Causes parts of words to be generated: *

* "PowerShot" => "Power" "Shot" …

gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
-2
votes
1 answer

How to conduct Hibernate Search within Lucene Index?

I have a Double field price in my entity class with annotation @Field. Now I need a query which will be used to retrieve product based on the price range provided by the user. I am new to this QueryBuilder things in hibernate search and I couldn't…
bivrantoshakil
  • 421
  • 1
  • 5
  • 10
-2
votes
1 answer

How to Integrate Spring 4 with Hibernate Search 5?

I have already integrate Spring MVC+ Spring Framework 4 + Hibernate ORM 4. Now I want to use full text search in hibernate search. So, How to Integrate Spring Framework 4 with Hibernate Search 5?
Robin Han
  • 101
  • 7
-2
votes
1 answer

Indexing a regular expression in Lucene and searching over the input

i have indexed the Regular Expression in Lucene , Is there a possibility to generate a lucene query to search my given input over the indexed Regular Expresion using Standard Analyzer? org.apache.lucene.search.Query…
-4
votes
1 answer

How to start using Hibernate Search?

I have a working web app which can do search for User objects through its Username. I wonder if I can use Hibernate-Search to do a text search through all of the User object attributes, like its: Username, Full Name, Address, etc. And will output…
quarks
  • 33,478
  • 73
  • 290
  • 513
1 2 3
97
98