The method setBoost in the class org.apache.lucene.search.Query is used in Java to set the boost factor for a query. Boosting allows the relevancy score of a query to be increased or decreased relative to other queries. By using the setBoost method, you can assign a higher or lower boost value to a query, indicating its importance in the search results.
Java Query.setBoost - 28 examples found. These are the top rated real world Java examples of org.apache.lucene.search.Query.setBoost extracted from open source projects. You can rate examples to help us improve the quality of examples.