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

No ClassLoaders found for: org.hibernate.search.jpa.FullTextEntityManager when upgrading Hibernate Search

I'm trying to upgrade my application from Hibernate Search 3.1.1.GA to 4.1.1.Final but when starting the jboss instance(4.3.0.GA) I'm getting a: Caused by: java.lang.NoClassDefFoundError: org/hibernate/search/jpa/FullTextEntityManager at…
jakob
  • 5,979
  • 7
  • 64
  • 103
0
votes
1 answer

how to index and search for custom fields using Lucene or hibernate search?

how to index and search for custom fields using Lucene or hibernate search. i cannot find a way to index the custom field. they are dynamic. 'custom fields' in here means they can be editabled by user,those fields are not hard code. Any help will…
Jonathan
  • 403
  • 2
  • 7
  • 16
0
votes
1 answer

Hibernate Search 4 thread not terminated

I have written a beginner-level program using Hibernate Search 4. Whenever I run the program the required transaction is performed (e.g. saving records in database), but the program does not terminate. It seems that a thread is running in the…
Naman Jain
  • 231
  • 1
  • 2
  • 8
0
votes
1 answer

Hibernate Search with Apache Lucene

I have a problems with my hibernate search. I already included the jar file needed however, I don't know how to call the hibernate search annotation and if I needed to create another XML file for the hibernate search. And also, how can I use this…
Zyrax
  • 171
  • 2
  • 7
  • 16
0
votes
1 answer

Retrieve Hibernate Search results directly from Lucene Index

How can I execute a search using Hibernate Search that will NOT retrieve the actual entities from the database and will instead just return the Document cache records for these entities? I am making sure to store the fields that I need inside the…
HipsterZipster
  • 1,326
  • 1
  • 14
  • 34
0
votes
1 answer

Can't get hibernate to work in Spring web flow project

I am trying to use hibernate in a Spring Web Flow Porject but I am getting the following error. I been looking at this and dont know why I am getting the error Here is my database.xml file:
Johnathan Smith
  • 1,112
  • 2
  • 17
  • 34
0
votes
1 answer

Lucene hibernate search NumericRangeQuery not working on field defined with @NumericField

I use hibernate search 4.1.0 with good results except for this problem. I´m trying to perform a range search in a column defined: @Field(name = "startTime", store = Store.YES) @NumericField public Float startTime; I have stored an item with…
Undertalk
  • 141
  • 5
0
votes
1 answer

Hibernate Search 4.1.1 NoSuchMethodError FSDirectory.open

I am trying to use Hibernate-Search 4.1.1-Final + Lucene 3.5 with Hibernate 4.1.3 and Spring 3.1.1 frameworks (Dependency using Maven) to enable POJO-based text search. I followed the Hibernate-Search documentation. Based on the doc, here is my…
0
votes
1 answer

Hibernate Search Automatic Indexing

I am working on developing an application which caters to about 100,000 searches everyday. We can safely assume that there are about the same number of updates / insertions / deletions in the database daily. The current application uses native SQL…
SB.
  • 1,887
  • 2
  • 19
  • 31
0
votes
1 answer

Hibernate Search Won't return correct results

I built an example project for hibernate search and it works fine without any exception but when I search a string that I have some objects with that string, it returns empty. I don't know what should I do!!! Can somebody help me... Project is maven…
Ehphan
  • 537
  • 3
  • 7
  • 19
0
votes
2 answers

How to get ShingleFilterFactory to work with Hibernate Search?

@AnalyzerDef( name = "tags", tokenizer = @TokenizerDef(factory = PatternTokenizerFactory.class, params = { @Parameter(name = "pattern", value=",") } ), …
zdesam
  • 2,936
  • 3
  • 25
  • 32
0
votes
0 answers

Lucene and ORMLite on Android

I would like to know how to use ORMLite with Lucene on Android (any example). Now I use Hibernate Search with Lucene on PC, but Hibernate Search is too heavy for Android and I think ORMLite suits for that better... Thanks.
GuenterR
  • 59
  • 5
0
votes
1 answer

How to handle collection updates with Hibernate Search

I am executing an update with Entitymanager as follows: Query query1 = em.createQuery("update user u set u.changed = true where u.changed is null"); query1.executeUpdate(); changed is an annoted field as follows: @Column(nullable =…
Christian
  • 3,503
  • 1
  • 26
  • 47
0
votes
1 answer

Why size of lucene index increased if i index the same data?

I implemented Hibernate Search in my application i.e. based on Lucene. Whenever, i indexes the database, the size of the lucene indexes increase. But, the result of the query return same no of results every time. Why the size of lucene increases…
Shashi
  • 12,487
  • 17
  • 65
  • 111
-1
votes
1 answer

Hibernate Search issues on VMWare ESXi?

I'm running integration tests in a Jenkins build environment, installed on VMWARE ESXi 4.0.0. Everything went well until I've included Hibernate Search into the application. From then on entities were reported missing during the integration tests.…
Jan Goyvaerts
  • 2,913
  • 4
  • 35
  • 48