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 a score ...

Get Elasticsearch in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.