O'Reilly logo

Hibernate Search in Action by John Griffin, Emmanuel Bernard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 java-user@lucene.apache.org ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required