O'Reilly logo

Elasticsearch in Action by Matthew Lee Hinman Radu Gheorghe and Roy Russo

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 6. Searching with relevancy

This chapter covers

  • How scoring works inside Lucene and Elasticsearch
  • Boosting the score of a particular query or field
  • Understanding term frequency, inverse document frequency, and relevancy scores with the explain API
  • Reducing the impact of scoring by rescoring a subset of documents
  • Gaining ultimate power over scoring using the function_score query
  • The field data cache and how it affects Elasticsearch instances

In the world of free text, being able match a document to a query is a feature touted by many different storage and search engines. What really makes an Elasticsearch query different from doing a SELECT * FROM users WHERE name LIKE 'bob%' is the ability to assign a relevancy, also known as ...

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