Chapter 5. Faceting

In this chapter, we will cover the following topics:

  • Getting the number of documents with the same field value
  • Getting the number of documents with the same value range
  • Getting the number of documents matching the query and subquery
  • Removing filters from faceting results
  • Using decision tree faceting
  • Calculating faceting for relevant documents in groups
  • Improving faceting performance for low cardinality fields

Introduction

One of the advantages of Solr is its ability to calculate statistics from your data. Solr faceting mechanism provides functionalities that can help us in several tasks that we do every day. From getting the number of documents with the same values in a field (for example, companies from the same city) through the ability ...

Get Solr Cookbook - Third Edition 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.