I have an application running on spring2.5, hibernate 3.1 and compass search engine.The compass search engine is synchronized with all db operations. So that I can get the data from compass cache quickly. Now I would like to replace compass with Elastic search engine .I'm newer to elastic search and I think the author of compass was developed the elastic search. So that the synchronization mechanism should implemented in elastic search also. Anyone please suggest a way how to do this.
Elasticsearch Sync with Hibernate Transaction
649 Views Asked by Jimmy At
2
There are 2 best solutions below
0
Sanne
On
Hibernate Search provides a similar integration as Compass Search used to do.
Older versions of Hibernate Search would only provide Lucene embedded, but the latest is giving the option of using Elasticsearch instead.
This is in pretty good shape already, but highly contributed too so it's a great time to try it out and let us know what you feel is missing.
The catch is that it requires to use Hibernate ORM at version 5.0.0 at least: please upgrade Hibernate (you will benefit from that in many other ways too, not least much higher performance).
Related Questions in SPRING
- Redirect inside java interceptor
- Spring RestTemplate passing the type of the response
- spring-integration-dsl-groovy-http return null when i use httpGet method
- Custom Spring annotation for request parameters
- Spring - configure Jboss Intros for xml with java config?
- HTTP Status 404 - Not Found in Spring 3.2.7
- AndroidAnnotations how to use setBearerAuth
- android I/O error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
- Show login dialog when not authenticated yet
- Spring Data Rest supporting json and xml
- @Value annotation not resolved in a class that belongs to dependency jar
- Remove nested _embedded fields while using projections
- How to send Rest GET request that contains "#" value in url parameters?
- How to inject spring bean into Validator(hibernate)
- How to keep a variable in the URL when using Spring LocaleChangeInterceptor
Related Questions in HIBERNATE
- Hibernate Query Exception: Cannot create critieria on owning entity
- Using like to non-string columns in Grails
- Play Framework Unable to build entity manager factory when Working with PostGIS
- How namedparameter query blocks SQL injection
- Is it necessary to create an repository and a service for each entity?
- JPA, Hibernate can I do composite primary key which one element is foreign kay @OneToMany?
- How to convert Hibernate List to String?
- Hibernate Lazy loading not work in OneToOne relation
- Hibernate Search Faceting not working
- JPA and web app
- How to add an extra constraint to joined-subclass in hibernate
- JPA findDistinctPropertyBy magic method doesn't work as expected when using spring-boot-starter-jpa
- How to initialize the log4j system properly?
- i'm stuck when I'm trying to make two primary key's in hibernate
- JPA, how can i have two queries, one use lazy and one use eager for fetching?
Related Questions in ELASTICSEARCH
- Elasticsearch schema for multiple versions of the same text
- Elasticsearch nested filter query
- Elasticsearch data model
- search with filter by token count
- Usage of - operator in elasticsearch
- Running multiprocessing on two different functions in Python 2.7
- How to get an Elasticsearch aggregation with multiple fields
- How to implement custom sort in elasticsearch?
- Custom Analyzer not working Elasticsearch
- How to implement full text search using Elasticsearch in Rails?
- UnresolvedAddressException in Logstash+elasticsearch
- Elasticsearch Fiddler No DNS
- Monolithic ETL to distributed/scalable solution and OLAP cube to Elasticsearch/Solr
- how to disable page query in Spring-data-elasticsearch
- Create Custom Analyzer after index has been created
Related Questions in COMPASS-LUCENE
- compass lucene search results sorting
- compass with eclipselink
- Is it possible to do a date based query time boost in Compass?
- grails searchable plugin query
- Shared Compass/Lucene Index in JDBC Store
- Under what conditions is it safe to do I/O operations (move/replace) on a lucene index (compass)
- Hibernate Search or Compass
- Grails searchable plugin
- Search subset of objects using Compass/Lucene
- Grails searchable plugin
- Empty result set from a Compass Lucene query with Dates
- Searchable index gets locked on manual update (LockObtainFailedException)
- Grails Searchable plugin add to index condition
- Grails searchable component option
- Elasticsearch Sync with Hibernate Transaction
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't know compass but Elasticsearch is search server on top of Lucene. And the only thing it does is update the search index based on a database query. This can be triggered manually or based on a timestamp filed in the database.
https://github.com/jprante/elasticsearch-jdbc