Help

Santa has come early to deliver Hibernate Search 3.3! This release comes with many new interesting and useful features as well as its lot of performance improvements and bug fixes.

Compatibility

This version has been tailored to work in conjunction with:

  • JBoss AS 6
  • Seam 2.2.1
  • Hibernate Core 3.6

Queries

Most likely the biggest feature is the new query DSL providing an easy-to-use, easy-to-read fluent API for programmatic queries. The Query DSL abstracts things like the right property bridge to use, the right analyzer to use for a given property etc. You work at the object level and let Hibernate Search do the conversion to the Lucene world.

Here is a fairly complex example

QueryBuilder mythQB = searchFactory.buildQueryBuilder().forEntity( Myth.class ).get();

//look for popular modern myths that are not urban
Date twentiethCentury = ...;
Query luceneQuery = mythQB
    .bool()
      .must( mythQB.keyword().onField("description_stem").matching("urban").createQuery() )
        .not()
      .must( mythQB
        .range()
        .onField("starred")
        .from(3).excludeLimit()
        .to(5)
        .createQuery() )
      .must( mythQB
        .range()
        .onField("creationDate")
        .above(twentiethCentury)
        .createQuery() )
    .createQuery();

We hope this will make complex queries much easier and much less buggy for you. You can get more info here.

While we are on the subject, you can now limit the time a query takes. While this is a hint for Hibernate Search and is a best effort, you can do it in two ways:

  • throw an exception if the query takes too long
  • return only the elements found when the time limit is reached (partial results)

More info here.

Backend

We have reworked the queuing algorithm which should make things substantially faster for people with complex object graphs and with massive changes.

You can now store your index in the Infinispan grid system (in a distributed way) instead of the traditional file-system based approach. The index data is store on the grid and shared amongst the cluster of machines. This eliminates some of the complexity of copying files between and master and a slave. More info here.

Hibernate Search now exposes various statistics like the average query time, the slowest query etc. This will help you tune your application with hard data. More info here.

Indexing and Lucene

We have migrated to Lucene 3.0. While this new version has some backward incompatibilities in its API, Hibernate Search shields you against all of this. Your application will be faster with minimal to no change to your application.

Note that to that effect, we have introduced a new artifact org.hibernate:hibernate-search-analyzers. This artifact is a replacement for org.apache.solr:solr-core when using the Solr analyzer framework. So far the namespace of the classes has not changed. Existing @AnalyzerDef definitions should continue to work.

We also have added support for the new Lucene NumericField. Numeric fields can provides significant query improvements on numeric properties. While this feature is marked as experimental in Lucene, we are quite optimistic about it.

@Field @NumericField 
Long size;

More info here.

And many more

There are some of the most prominent new features, don't hesitate to look for previous blog entries on the subject and of course the changelog and the reference documentation which has been updated and cleaned up.

Check out the new release on JBoss.org's Maven repository or download the distribution. You can also read the documentation.

Many thanks to the various contributors, in particular Gustavo from Sourcesense . And welcome Sanne to the team (sorry for the rough release baptism :) ).

Happy searching!

9 comments:
 
05. Jan 2011, 05:21 CET | Link

Thanks Santa ;-)

ReplyQuote
 
24. Jun 2014, 22:49 CET | Link

The problem is that they used their practice account forex completely in the wrong way, and in the process learned wrong habits that will be catastrophic in a real trading environment. Because of this rotation, anyone wishing to may a transaction can watch the way thewhat is foreign exchange currency is fluctuating across the globe and time their buying/selling appropriately.

 
20. Jul 2014, 07:02 CET | Link
senlldy | ddeeqz(AT)163.com

The large soft hobo on the Dries Van Noten runway was a soft, pale blue leather and featured one top handle that is not wore tucked under equip. The hobo could easily fit all chanel replica handbags purse essentials plus a few extra items. The soft blue blended well into the Dries Van Noten 2014 bag color palette and can easily work with the other designer collections from Milan and .

Women who go gaga over designer bags usually love often life. The want luxury, fashion, champagne, caviar such like. They live for labels. Sometimes they lack self confidence gucci replica and that is why they make use of designer longchamp outlet bags to do the talking upon their. The designer bags show you have money certainly not mind spending it! Female who carried this bag can perform the persona of the designer, learning to be a rock star or a way model!

Proud to learn that you are among a small society, a brotherhood bonded by girls who know how amazing it feels to sling a genuine LV bag on the arm or take on. There is nothing in entire world and the replica hermes pride you feel, the spring inside your step, confidence abounds suddenly when carrying your LV bag. It doesn't what you wear, appear very nice with his Louis Vuitton Wallets globe arm. Don't forget to give her daughter from her purse when she looks her age enough to comprehend the finer things in life.

 
10. Aug 2014, 15:08 CET | Link

Couldn't be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!spekhargaponsel.com

 
23. Aug 2014, 14:36 CET | Link
extended Data Table

2 problems, when i use binding attribute for dataTable and extended Data Table, when the page rendered first time it renders good, but when i try to fill the list via ajax or normal submit it gives me js. errors and table loses all its styles and features. venus factor login

 
28. Aug 2014, 07:47 CET | Link
zcxvxvbc

Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read.

 
28. Aug 2014, 07:48 CET | Link
Zxczczv
zcxvxvbc wrote on Aug 28, 2014 01:47:
Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. truth about cellulite by joey atlas ebook

Click HELP for text formatting instructions. Then edit this text and check the preview.

 
29. Aug 2014, 06:22 CET | Link
grosiramazonplus

Click HELP for text formatting instructions. Then edit this text and check the preview. grosiramazonplus

 
01. Sep 2014, 15:34 CET | Link
jack

I will miss the judges' dinners, whether a backyard mini implants palm beach gardens barbecue in Cloverdale or a multicourse spread at a fancy restaurant in Dallas. Check this link

Post Comment