title: Hibernate Search Result Ranking
body: <p>I am using Hibernate Search Along with Lucene to implement full text search on my data base. I want to know that do hibernate search query or lucene query return top ranked and the most relevant results? Documentation says:</p>
  
  <blockquote>
    <p>Apache Lucene provides a very flexible and powerful way to sort
    results. While the default sorting (by relevance) is appropriate most
    of the time</p>
  </blockquote>
  
  <p>Link: <a href="http://docs.jboss.org/hibernate/search/4.2/reference/en-US/html_single/#search-query" rel="nofollow">http://docs.jboss.org/hibernate/search/4.2/reference/en-US/html_single/#search-query</a></p>
  
  <p>Section: 5.1.3.3. Sorting</p>
  
  <p>But I am very confused with the results as they are always arranged with the IDs of the objects. I just need the top 100 most relevant records.</p>