The release cycle of Hibernate Search 4 has begun. Alpha 1 is out. We already have many things implemented so this change is consistent and more releases will come quickly.

Hibernate Search 4 goals are two folds:

  • Be compatible with the new Hibernate Core 4 releases.
  • Make the necessary architecture change to reach the future goals of Hibernate Search.

In particular, making Hibernate Search independent from Hibernate Core and allowing more scalable cloud-tainted backends.

This release already includes lots of changes

Split between API / SPI and implementation classes

Each class is now categorized into either an API, a SPI or an implementation class.

  • APIs (in regular packages) are safe to be used in your application and we try very hard to not break these contracts
  • SPI (in .spi packages) are classes that are used by frameworks integrating with Hibernate Search (like Infinispan's search module). These contract are pretty stable but might change more often than APIs
  • Implementations (in .impl packages) are implementation details. Don't let your application depend on these.

If you were a good citizen and already used the API only, you should not be affected. If you were using SPI or internal classes, you will have to adjust. Check our wiki page for the migration guide.

Move to JBoss Logging and error codes

JBoss Logging has some nice features including error internationalization and error codes in messages. You will be able to Google HSEARCH00043 and see why you have such problem.

Integration with Hibernate Core 4

Nuf said.

Move to the per index backend architecture

This will give you more flexibility on how you want your entities indexed and us the possibility for additional optimizations down the road. You can use different technologies for each index, for example use a Lucene backend for some indexes and an Infinispan index for others which need real-time clustering. Also it's now possible to configure the performance parameters of each index separately, from the async/sync option to the number of Worker threads and queue sized in the backend executor.

MassIndexer is no longer an exclusive mode

The MassIndexer no longer locks out the main backend listening for Hibernate events, so it can be started while other transactions run. Until it finished however some results might be missing from the index.

New binary format of communication between remote backends

Lucene no longer guarantees the Serializable contract for Documents and Fields. This is a problem when you use a clustered model for Hibernate Search.

So we have introduced a new communication protocol in the JMS and JGroups backends so they can pass along Lucene works in a safe way. This aligns with our quest to shield you from incompatible changes Lucene may make in future versions. We also want to make it easier to upgrade a cluster of Hibernate Search nodes and let them interact without issue when possible.

So now you can use NumericField in clustered environment, which was previously not possible as it has never been Serializable.

Aggressive on performance

The backend is now quite aggressive in write performance, enabling exclusive_index_use by default and having merged some of the performance tricks from the MassIndexer back into the standard backend to take advantage of them all the time. For example the new backend design allows us to analyse Documents in multiple threads while still guaranteeing writes happen in the proper order. This is configured with the worker.thread_pool.size property, defaulting to one, and applies even to backends configured for synchronous updates.

Get the release

That's all for now, check out the release and make sure to read the Migration Guide.

Many thanks to the community and particularly Davide D'Alto for his contributions and Adam Harris, Samppa Saarela and Elmer van Chastelet for their suggestions for performance and design improvements.

14. Jul 2014, 09:46 CET | Link

A fabulous get rid of finest for material window treatments certainly is the most suitable complement in a giant particular date and additionally is visually delightful the moment teamed by means of tremendously reproduction purses.

29. Aug 2014, 06:57 CET | Link
obat stroke herbal amazon plus

The globe is changing fast. people are also getting by day we are becoming more dependant on degital are making me think of this really.You have a fantastic way of sharing your thoughts. obat darah tinggi herbal alami obat herbal wasir ambeien obat stroke herbal amazon plus

18. Sep 2014, 13:57 CET | Link
replique montre

Omega et réplique

10. Nov 2014, 22:03 CET | Link

Also the prices are something that calls me every website design west palm beach time. This is a place where spending is actually worth.

10. Nov 2014, 23:27 CET | Link
Golf Shop Malaysia

Excellent! I am really thrilled to be reading this today. Thank you very much sir for uploading this informative blog today.

11. Nov 2014, 00:17 CET | Link

Hardly rent me combine quantity info to your blog. I generally scrawl assignments produced by professional paper writing service manually besides apprehend how strenuous it is to produce a advise among benevolent sctructure. Bless you for worthy satisfy!

17. Nov 2014, 10:54 CET | Link

I really like the dear information you offer in your articles grosir ace maxs grosir obat herbal cara mengobati penyakit

17. Nov 2014, 13:46 CET | Link
sangat bgus sekali informasinya
20. Nov 2014, 12:26 CET | Link

it is right beside Punggol Waterfront. Entertainment for your loved ones and friends are therefore at your fingertips with the full condo facilities as well as the amenities near Bellewaters EC.Bellewaters

22. Nov 2014, 09:45 CET | Link

Display and Presentation of good information, very informative ... Hipertensi

24. Nov 2014, 04:57 CET | Link

Permission to visit his website, hopefully more prosperous and successful ... Asam Lambung

25. Nov 2014, 14:23 CET | Link

Berbicara tentang Cara Menghilangkan Kutil Kelamin Secara Alami itu sebenarnya banyak caranya atau langkah-langkah untuk menyembuhkan atau menghilangkan kutil kelamin, baik yang dilakukan secara medis maupun tradisionalatau alternatif atau juga secara alami. Memang penyakit ini sangat menggangu si penderita dalam beraktifitas ataupun dalam melakukan hubungan intim dengan istri, oleh sebab itu penyakit ini sebaiknya secepatnya di sembuhkan supaya tidak bertambah parah atau bahkan menular kepada orang lain, istri misalkan. harga obat kutil kelamin cara mengobati kutil kelamin obat kutil kelamin alami cara mengobati kutil kelamin secara alami obat kutil kelamin manjur cara mengobati kutil kelamin secara herbal obat kutil kelamin ampuh cara mengobati kutil kelamin tanpa operasi obat kutil kelamin wanita cara mengobati kutil kelamin pada ibu hamil obat kutil kelamin tanpa operasi cara mengobati kutil kelamin bagaimana ya obat kutil kelamin apa ya bagaimana cara mengobati kutil kelamin obat kutil kelamin ibu hamil cara mengobati kutil kelamin dengan cepat obat kutil kelamin terbaik cara mengobati kutil kelamin pada wanita obat kutil kelamin yang paling manjur cara mengobati kutil kelamin pada pria

28. Nov 2014, 03:20 CET | Link

semoga semakin sukses... Obat Sinusitis Kronis

01. Dec 2014, 13:47 CET | Link

for your current home, check quotes from leading homeowners insurance companies that fits your needs and budget. Maximize your savings, choose the cheapest coverage, compare quotes website design west palm beach through over 2000 agents and trusted companies of the United States.

04. Dec 2014, 04:25 CET | Link

Thank you for the information, Obat Penyakit Herpes di Kulit

08. Dec 2014, 04:11 CET | Link

Sangat berkualitas tampilan websitenya, Ulasannya juga sangat informatif, Obat Jantung Bocor

09. Dec 2014, 04:18 CET | Link

sukses untuk websitenya, mohon izin nih untuk berkunjung, terima kasih... Obat Polip HidungkDGnFB

10. Dec 2014, 04:03 CET | Link

bagus websitenya, semoga makin sukses... Obat Sakit Limpa Bengkak

11. Dec 2014, 03:59 CET | Link

jaya selalu untuk websitenya, dan semoga semakin sukses, Obat Alami untuk Hipertensi

18. Dec 2014, 12:57 CET | Link
penjual ace maxs

berpengalaman melakukan pengiriman keberbagai kota di indonesia. ace maxs efektif sembuhkan kanker, kolesterol, diabetes dll.