-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
ElasticSearch Blueprints
By :
Next, when I search for Lenovo, I would like to see different product types associated with it. This is more like making a report out of the results, but then, as this makes your data more explorable and easy to understand, it's safe to see this as enhancing search capabilities.
Hence, whenever I search for something, I want to see the following reports on my query results or rather, an aggregate of my results in the following information:
productTypeFor this, we need to build different aggregations to capture these reports.
It's very important to understand that the score of aggregation is the query. This means that the aggregations would only be done on those documents that match the query.
The format in which we should provide aggregations is as follows:
{
"query" : { ….},
"aggregations...
Change the font size
Change margin width
Change background colour