Help

Hibernate Search v.4.2.0.CR1 has just been released. Mostly bug fixes and performance improvements but also an easier way to deploy in JBoss AS 7 or JBoss EAP 6.

JBoss modules

In JBoss 7 rather than a flat lib directory you'll find modules; each module is organized in its own directory and explicitly defines which jars are exported and which dependencies it has on other modules. It is now possible to bundle Hibernate Search as a JBoss Module, and add it to the other modules of The Application Server.

This gets you smaller and quicker deployments, the ability to share the same artifacts across multiple applications. Other projects depending on Hibernate Search Engine might depend on it, like Infinispan, TorqueBox, ModeShape, CapeDwarf, Cloud-TM, ...(and let us know which others!)

How to benefit from it in your applications? Provided you're deploying on JBoss 7.1.x or EAP6, instead of adding all the Hibernate Search jars to your EAR you can download the pre-packaged module from either:

  • Sourceforge
  • Maven: org.hibernate:hibernate-search-modules

Unpack the modules in your JBoss AS directory, this will create modules for Hibernate Search, Apache Lucene and some useful Solr libraries. Hibernate Search is split in two modules:

  • org.hibernate.search.orm:main For users of Hibernate Search with Hibernate; this will transitively include Hibernate ORM
  • org.hibernate.search.engine:main For other projects depending just on the internal indexing engine and do now wish other dependencies to Hibernate

Using Manifest

The simplest way to have your application declare a dependency on the Hibernate Search module; just add a single attribute to your application's Manifest:

Dependencies: org.hibernate.search.orm services

Using jboss-deployment-structure.xml

In alternative to the manifest, an XML file can be used: add WEB-INF/jboss-deployment-structure.xml with content:

<jboss-deployment-structure>
    <deployment>
        <dependencies>
            <module name="org.hibernate.search.orm" services="export" />
        </dependencies>
    </deployment>
</jboss-deployment-structure>

More details about modules are described in Class Loading in AS7.

(this is just a new packaging and doesn't affect any library code: assembling applications in the older traditional style is still supported)

Spatial indexing improvements

After the initial round of feedback we changed some methods and hopefully made it easier, at the cost of changing some class names.

Grid to QuadTree

We dropped the grid term in favour of QuadTree, as it better reflects the internals of the algorithm. This is mostly an internal detail, but if you were using any class with the Grid postfix you should be able to find a QuadTree equivalent now.

@Longitue and @Latitude

The attribute names of these annotations changed to be more readable.

Performance

I don't know if these affect you, but if they happen to address your use case the performance boost can be very significant, up to two orders of magnitude.

Near-Real-Time for write-mostly scenarios

I always expected most users would face a read-mostly use case, and the Near-Real-Time IndexManager implementation was biased by this belief: it used to prepare in advance an IndexReader after each write was applied. This is now prepared on-demand and only if needed, so applications who have bursts of write activity will be much faster when using this backend.

At the same time, Lucene 3.6 is behaving slightly differently compared to previous versions so we now have the NRT backend try hard to avoid flushing delete operations unless they are necessary, this also provides a significant performance boost for some scenarios.

The combination of these changes might make it suitable to track visitors activity to perform efficient data mining activities on the index.

MassIndexer

The MassIndexer now might benefit from fetch size hinting to the JDBC driver; this mostly depends on your driver implementation: some ignore it, but shouldn't hurt to try. In my tests on MySQL 5.5 it appeared to provide a small but consistent improvement of around 3.1% indexing time.

Apache Lucene versions

The Apache Lucene community released version 3.6.2 so that's what we target now. This is mostly a bugfix release: no APIs where changed so if you wish so you can stick to versions 3.6 or 3.6.1.

Thanks

Special thanks to Nicolas Helleringer for implementing the new Spatial features and bearing with me, to Michael Simons for carefully reviewing and fixing the Spatial documentation and his feedback to the API, to Guillaume Smet and his team for the very brave debugging and fixing of the MassIndexer.

14 comments:
 
22. Sep 2014, 08:32 CET | Link

Your prosperous since these kind of designer watches are actually duplicated in order to meet your replica omega watches normal plus reasonably priced. You no longer need to get prosperous simply uses individual some measure chronograph stealth chanel replica for the reason that duplicate of such Swiss measure chronograph stealth designer watches are out there. These kind of duplicated designer watches are certainly not affordable in any attribute since they have been meant to always be wonderful along with extraordinary of their fake rolex. A high level regular earner, your duplicated enjoy via Swiss measure chronograph stealth can be your own house way too since audemars piguet replica is just not the situation using these substantial manner designer watches. High-class along with wealthiness is just not have missed inside design and style of such designer watches specially your duplicated new replica rolex via Swiss enjoy that may be reasonably priced and intensely lovely.

ReplyQuote
 
01. Oct 2014, 15:16 CET | Link
500 fast cash

Nice share of information here. I really find this information really helpful for me. Thanks a lot, dude, for putting up this vital information on the internet for everybody to use.500 fast cash

 
02. Oct 2014, 13:31 CET | Link
jassica

Whereas women need to feel sexy, men want to see sexy – so what better way to make you both happy than to don this sexy piece? sparxx rx

 
09. Oct 2014, 16:12 CET | Link
branding jakarta

First You got a great blog .I will be interested in more similar topics. i see you got really very useful topics, i will be always checking your blog thanks.branding jakarta

 
12. Oct 2014, 09:17 CET | Link
Asad

Along with not getting the results that you're looking for, you could even make your rankings worse. If you don't know anything at all about SEO, you might be better off using professional SEO services.Toronto SEO

 
18. Oct 2014, 13:09 CET | Link
magtre

Excellent is the only word i can give u for this wonderful blog,Audello Review WP Profit Builder Review keep it up. I will come back again to read some more interesting things on this topic.

 
25. Oct 2014, 19:34 CET | Link
dssdfgh

It’s very good advice, and it explains why I am here reading your posts. The more advice I can get the better when it comes to blogging. WP Profit Builder

 
03. Nov 2014, 05:13 CET | Link
ANTOKP

It is great advice, and it also points out why I am on this page looking at your posts.The better advice I will obtain the much better in terms of bloggingSource Phoenix Reviews

 
11. Nov 2014, 21:08 CET | Link
jack

We had a chance to meet a talented group of smart,upholstery cleaning mount laurel articulate teens who ran everything from internet businesses to wedding cakes

 
13. Nov 2014, 17:55 CET | Link
Stickers for cars

Well Thank you for the sensible critique. neighbour were preparing to do some research about that. We got a good book on that matter from our local library and most books where not as influensive as your information.Stickers for cars

 
15. Nov 2014, 15:04 CET | Link

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained!

best bcaa product
 
17. Nov 2014, 15:52 CET | Link
Railroaders Tips And Tricks

Great information you got here. I’ve been reading about this topic for one week now for my papers in school and thank God I found it here in your blog.Railroaders Tips And Tricks

 
21. Nov 2014, 10:43 CET | Link
Alberta

Thank you for your post, I look for such article a long time, today I finally find it. This post gives me lots of advice it is very useful for me. online discount deals

 
21. Nov 2014, 17:55 CET | Link
asad

Ejaculation Trainer: Matt Gorden Reveals His Step-By-Step Ejaculatory Science Techniques For Ending PE And Giving Your Woman An Unforgettable Sexual Experience Anytime, Anywhere...rebelmouse.com

Post Comment