Skip to content

Hits over Time

lucasfijen edited this page Oct 29, 2017 · 8 revisions

When a search is made a timeline will appear beneath the searchbar. In this timeline the amount of results per month are shown. Also the total amount of results, and the time it took Elasticsearch to run is shown.

hits_over_time

This timeline is made by using the aggregation function in Elasticsearch. This function returns besides the results for the query also some statistics which were crucial for this timeline.

The aggregation will return a dictionary with months as keys and amount of results as values. Then a timeline graph is made using JSchart.

Clone this wiki locally