Chapter 12. Document ranking

This chapter covers
  • The vector space model
  • Extending the DefaultSimilarity class
  • Writing your own Scoring and Weight classes
  • Relevancy

Have you ever found yourself saying something like, “I need to score the results of my queries slightly differently. How do I go about that?” Or maybe, “I don’t care about how many times what I’m looking for occurs in a result; I just want to know whether or not it does.” The authors have even heard, “The lengths of the documents I’m querying should have nothing to do with the scores of the results.”

How documents are scored when they are retrieved during a search is a very hot topic among users. Questions appear every day on the Lucene mailing list at ...

Get Hibernate Search in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.