Help

The release 5.0.0.Alpha2 is now available on our shiny new website: as the alpha1 release also did, it integrates with Apache Lucene 4.6.1, but now we do it better ;-)

<dependency>
 <groupId>org.hibernate</groupId>
 <artifactId>hibernate-search-orm</artifactId>
 <version>5.0.0.Alpha2</version>
</dependency>

More Like This queries

New features! A More Like This query is a special kind of query which takes a model document as an input, rather than a traditional string. It has been available for you to use since a long time via Lucene's MoreLikeThis Query implementation, but this implementation was rather tricky to use on our richer entity based model. Hibernate Search now provides direct support for this functionality via our Query builder DSL, and in its simplest form looks like this:

Coffee exampleCoffee = ...

QueryBuilder qb = fullTextSession.getSearchFactory()
        .buildQueryBuilder()
        .forEntity( Coffee.class )
        .get();

Query mltQuery = qb
        .moreLikeThis()
            .comparingAllFields()
            .toEntity( exampleCoffee )
            .createQuery();

List results = fullTextSession
        .createFullTextQuery( mltQuery, Coffee.class )
        .list();

What does it do? It returns a list of Coffee instances which are similar to the exampleCoffee instance. The definition of similar is as usual controlled by the analyzers and indexing options you choose. By default the list is of course ordered according to the scoring model, so the top match would be the example entity itself (this might be surprising but is often useful in practice).

A more extensive blogpost about this will follow, but if you can't wait to learn more see all details in the Building queries chapter.

Faceting improvements

One of the highest voted improvement requests on JIRA, it is now finally possible to facet on embedded collections. Hardy also started exploring possible performance improvements, and how to use the new Lucene 4 features: feedback, use cases or patches would be very welcome as we're eager to improve faceting more.

Watch the migration guide

If you're updating an application from previous versions of Hibernate Search, we highly recommend to keep an eye on the Migration Guide as the changes in the Lucene API are significant and not always self-documenting. Suggestions for the migration guide are also very welcome.

The Apache Lucene Migration Guide might also be useful, but we applied most of it already to the internal engine for you to use transparently.

The hibernate-search-analyzers module is removed

This module was created years ago when we had to fork some Lucene code to allow an easy migration path, but is now since long an empty module just depending on various commonly used analyzers. It's time for spring cleaning of dependencies, so the no longer needed module is removed: if you where using it, just remove it from your project and include a direct dependency to the analyzers you need from the Apache Lucene ecosystem.

What's next?

You can find an high level overview on our Roadmap page, or check the fine grained break down on this JIRA filter. Essentially we're aiming now at OSGi compability and at usability improvements which had to be postponed to a major release.

3 comments:
 
20. May 2014, 10:26 CET | Link
Choosing in what carry companies needs to be employed may be annoying occasionally, and sometimes in which way to obtain disappointment is just as a result of unsure just what companies can be obtained.
ReplyQuote
 
28. May 2014, 09:31 CET | Link

Click HELP for text formatting inHave you monitored some sort of replica rolex party or simply a Society World-class together with consider so why a given athlete triumphed in the wedding? Using gatherings, any fake patek philippe watches somewhere between earliest together with survive may be a moment. Every last athlete needs to work together with secure the wedding. Every one lv handbags outlet is looking for a good economical benefit which can insert your pet over the top. Together with one of the ways that an athlete will expand this fake rolex dateJust for results is certainly by just optimizing this inhalation behaviours together with lung power. Neck muscles blockage may be a fake rolex for respiration during the neck muscles which really can be because of viral microbial infection which include croup or simply infection will greatly reduce athletic results.structions. Then edit this text and check the preview.

26. Jun 2014, 11:55 CET | Link

This is where you'll find the best choice and lowest prices around. If the cheap Gucci men leather belts has a lot of rivets and you put a bag to heavy use, this may not be the best bag for you either. Those of you that own a Chloe Paddington will notice that when your lock is new it has a dull finish to it. You can also create custom cheap Gucci belts by using fabric paint on a white pair. If you invest in one of these you'll find you have a little piece of fashion history that will hold its value well should you ever wish to re-sell cheap Gucci canvas belts. It was one of the most sought after shades of the past year and nude coloured shoes look like they will be making an appearance yet again. Smoky Topaz earrings would be a great example to following this trend, and can be viewed at CoutureLineX. Mix a few drops of mild hand dish washing detergent in half a bucket of cold water. It guides to accrued vulnerability of women to the cheap gucci green red green web classic belts, and successively, alterations their article of clothing flair. Folding pumps will come in handy on so many occasions. Next take the other end of the lace and insert it through the bottom right eyelet of the Converse sneaker on the opposite side of the first eyelet. If you are self-conscious about your arms then go for cheap gucci hats instead any old spare tee will do!You should also make sure that the sunglasses fit you properly, there is nothing more annoying than a pair that keep sliding down your nose or won't stay on properly. Begin by sewing the left and right side at the back and front. Because you are shopping for cheap gucci sunglasses for men online, be sure to check the online stores return policy. These fabulous creations are slender, lightweight shoes that fold up easily ready to be slipped into your handbag so they are ready whenever you need a break from those cheap gucci men black sunglasses. With regular, careful maintenance you can keep your suede sneakers in good shape even through extended wear. Cut a few lines in the soles of your shoes with a sharp pair of scissors or a utility knife. Colorful tonal yarns adorn wrap-around cardigans - perfect for layering and pairing with your favorite skinny leg pant and a great pair of cheap hermes men belts.

Post Comment