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
0 answers

FieldBridge for List mapped to text[] in postgres

In MyEntity I store a list of project names as Strings and map it to a postgress list-array. @Table(name = "my_entity") @TypeDef(name = "list-array", typeClass = ListArrayType.class) @Entity @NoArgsConstructor @Indexed(index =…
Stuck
  • 11,225
  • 11
  • 59
  • 104
-1
votes
1 answer

Is any posability to make mustache query (or use existed script) in hibernate?

I have saved script in opensearch cluste. Is it possible to call it somehow via hibernate-search or make something like "native query" with mustache script?
RiseOfDeath
  • 33
  • 2
  • 8
-1
votes
1 answer

issue in upgrading hibernate-search v3.4.1.Final to hibernate-search-orm v5.9.3.Final

Earlier I was using hibernate-search v3.4.1.Final and now I'm upgrading my application so i have to use hibernate-search-orm v5.9.3.Final and accordingly I'm using hibernate-entitymanager v5.2.17.Final. So after upgrading those dependencies in my…
rob
  • 17
  • 9
-1
votes
1 answer

Infinispan how to select an embedded entity

I am using RedHat DataGrid (it is like Infinispan). I have this class Execution which has a collection of Workflow type. I need to execute the following query: select e.workflow from Execution e where e.workflo.id in (1, 2) It is possible? I tried…
-1
votes
1 answer

Hibernate Search 6: Case-insensitive searching of aggregable fields while retaining case-sensitive aggregation results

I have used the new aggregation functionality of Hibernate Search 6 to develop a classic "faceted search" interface, in which the various search fields in the UI are accompanied by the most popular choices taken from the aggregation data of the…
-1
votes
1 answer

How do i configure Spatial mode in Hibernate search 6?

I'm in the process of migrating from hibernate search 5 to 6. Many annotation classes that were present in hibernate search 5 have been completely removed in hibernate 6. One of these annotations was @Spatial. With this annotation you could…
Maurice
  • 6,698
  • 9
  • 47
  • 104
-1
votes
1 answer

Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true [JAVA]

We have a java application (spring boot + hibernate search + elastic search). Application is working fine on elastic search version 6.8 Recently, we have created a new cluster in aws with version 7.10.2 and updated elastic search endpoint in my java…
-1
votes
3 answers

Hibernate Search Orm issue

i have a spring boot app that works nicely and i have to integrate a search engine to search by keyword in the whole database so after some researchs i discovred hibernate search and followed a tutorial for its integration with spring boot here is…
Aymen
  • 1
  • 3
-1
votes
2 answers

hibernate search configuration

Im using hibernate search and elastic search as backend . When i config hibernate and hibernatesearch in xml file everything is ok but whene i config it in java class this warning occur and nothing found in my search . xml config is:
-1
votes
1 answer

Sorting strings based on the integer value they represent in hibernate search

I have an entity with a string field in it. Sometimes this string field stores actual words, so sorting based on lexicographical order makes sense. However, there is a use case where this field stores string values like "0%", "10%", "100%", "20%".…
Lyn
  • 637
  • 5
  • 16
-1
votes
2 answers

java.lang.NoSuchMethodError In Hibernate Search module 5.9.0 with spring boot JPA

I am trying to put Hibernate Search/Lucene Search into my Spring boot JPA Project But I get 500 error stating "status": 500,"exception": "java.lang.NoSuchMethodError", "message":…
-1
votes
1 answer

java.lang.AbstractMethodError: org.hibernate.search.elasticsearch.analyzer.impl.ElasticsearchAnalyzerStrategy.initializeAnalyzerReferences

I am trying to integrate elastic search with hibernate search.For doing this I am using following maven dependencies. org.hibernate hibernate-core
-1
votes
1 answer

Java Spring Data Hibernate Search Engine

error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource…
-1
votes
3 answers

how to search case insensitive in hibernate search using lucene query?

I am using two analyzers while indexing such as StandardAnalyzer for some fields and WhitespaceAnalyzer for some fields holding value as special character like c++ but I am writing query as QueryBuilder qb =…
Santhosh
  • 1
  • 3
-1
votes
1 answer

When use hibernate search, how to use Analyzer which doesn't have no-argument constructor

how to use an Analyzer with constructor which need a argument? thanks!
Jiabin
  • 3
  • 1
1 2 3
97
98