Dmitry was born in Kaluga, Russia and graduated with a diploma in applied mathematics and physics from the Moscow Institute of Physics and Technology. He became interested in Java since the first university years of the university. Worked for several companies in Moscow, developing CRM systems for a large telecommunication company and creating Hadoop-based ETL processes for an international bank. In 2015 he participated in the GSOC program and became a fan of open source, contributing to Hibernate Search, JBoss Tools and Eclipse JSDT. Now he is working for Red Hat on JBoss Tools plugins for Openshift and Hibernate.
The major change of the release is that all functionality, except "Index Rebuild", are now grouped in the Index Toolkit view. To open it, right-click on a configuration in the Hibernate Configurations view and choose "Open Index Toolkit".
Here you can find three tabs: Analyzers, Explore Documents, Search. The first two tabs repeat functionality from the first release of the plugin.
The new feature of the release is the capability to easily execute the search.
The plugin passes the input string from the search text box to the QueryParser which parses it using the specified analyzer and creates a set of search terms, one term per token, over the specified default field. The result of the search pulls back all documents which contain the terms and lists them in a table below.
The next step is to merge this plugin with the JBoss Tools Hibernate plugin. Currently, the Hibernate Search plugin is based on the Hibernate plugin which must be installed beforehand to prevent a "missing required feature" error.
I’m glad to announce the first release of the Eclipse plugin for Hibernate Search. In this post I want to describe its features and ask you for any comments, positive or (even more important for me) negative.
The plugin was made as a feature of jbosstools-hibernate plugin, which can be downloaded and installed on its own or together with the full JBoss Tools distribution. After that you can install the Hibernate Search plugin via the Eclipse Marketplace.
All requirements, such as eclipse version and platform support, are listed in the link.
In order to work with Hibernate Search you have to set the Hibernate configuration properties
See also Getting started with Hibernate Search.
The plugin was thought to be some kind of a Luke tool inside Eclipse. It was thought to be more convenient than launching a separate application, and picks up the configuration directly from your Hibernate configuration.
Three options were added to the console configurations: Index rebuild, Explore documents and Try analysers.
When introducing Hibernate Search in an existing application, you have to create an initial Lucene index for the data already present in your database.
The option "Rebuild index" will do so by re-creating the Lucene index in the directory specified by the
After creating the initial index you can now inspect the Lucene Documents it contains.
All entities annotated as
@Indexed are displayed in the Lucene Documents tab.
Tick the checkboxes as needed and load the documents. Iterate through the documents using arrows.
The "try analyzers" instrument allows you to view the result of work of different Lucene Analyzers. The combo-box contains all classes in the workspace which extend org.apache.lucene.analysis.Analyzer, including custom implementations created by the user. While you type the text you want to analyse, the result immediately appears in the AnalysisResultTab view.
One problem which you might have is that "Index rebuild" option seems to do nothing. As a temporary workaround try to set the Hibernate configuration property "hibernate.search.autoregister_listeners" to "true" explicitly.
If you have any other problems, such as unexpected behaviour, strange windows with exceptions or any errors in the Error log view feel free to contact me directly anywhere or just create an issue in the plugin github page.
Make options "Index rebuild" and "Explore documents" available not only for configurations, but also for concrete entities under session factory.
Make Lucene Documents view more comfortable to use and add there more features from Luke tool, for example, the ability to search over documents.
Increasing stability of the plugin and implementing your suggestions!
This post was replicated from: http://bdshadow.blogspot.ru/2016/01/hibernate-search-tools-100alpha-release.html