Getting data points using facets
Let us refresh our memory about facets. Simply put, faceting refers to the method of categorizing data. A facet on a search result will contain categories and the number of documents in each category. The purpose of facets is to help the user narrow down his or her search result on the basis of some categories. Let us take an example to understand this better.
A search on mobile a phone would bring up a few of the following facets on the Amazon website:
Facet for Brand: We can see a facet for Brand in the following screenshot:
The brand facet is purely intended to help the user shortlist his or her preferences. The count of cell phones for each brand is not displayed, although this information is readily available and can be used for display.
Facet for display size: We can see the facet for display size in the following image:
The display size category shows facets based on the range of display sizes. Phones having sizes of less than 3.9 inches are grouped together...