concept BoostingQuery in category hibernate

This is an excerpt from Manning's book Hibernate Search in Action.
One additional query that you should be aware of is the BoostingQuery. This Query class originally started out in the Lucene sandbox, which is discussed along with the BoostingQuery class in section 13.1.2. This is why we decided to discuss it there. It’s an easy way to change the scoring of matching documents and can be made to work in ways you’re probably not expecting.
As of this writing, the fate of the Sandbox is up in the air. The authors were informed that it is no longer being maintained, and some of the classes there have been adopted into the Lucene core. We’re going to discuss two of them—BoostingQuery and RegexQuery. We still consider these two classes important to discuss so that you can see their inner workings and possibly adapt them to your own code if needed. Besides, that’s what the Sandbox is for.
After looking at a term highlighter, we will revisit a topic discussed in chapter 12, scoring and the BoostingQuery. Depending on the circumstances, this utility class may save you a lot of work. The last parts of this section, before we move on to the contributions, will cover various types of query classes such as synonym and regular expression (regex) queries.
If you are only interested in the demoting of results, this class is the somewhat nonintuitively named BoostingQuery. The source code is located in the lucene_install_ directory/contrib/queries/src/java/org/apache/lucene/search directory. A precompiled Lucene-queries .jar file is available and located in the lucene_install_directory/contrib/queries/ directory. The basic use of this query type is as follows:
Listing 13.3 is the source listing for the BoostingQuery class itself.