Creates a timeline mapping from dates to the number of documents per date based on time expression that occur in the document content.
Creates a timeline mapping from dates to the number of documents per date based on time expression that occur in the document content.
the search query.
the timeline level.
the data source index or database name to query.
an instance of models.Aggregation consisting of models.MetaDataBucket, each representing a time unit with the number of documents for this unit.
the method models.services.TimelineService#createTimeline.
Creates a timeline mapping from dates to the number of documents per date based on the document creation date.
Creates a timeline mapping from dates to the number of documents per date based on the document creation date.
The timeline supports different drill-down steps called "level of detail (lod)". In the most coarse grained level the result maps from grouped decades to number of documents that fall in the decade i.e. 1990-1999: 10 docs, 2000-2009: 20 docs, etc.
Similar, the most fine grained level maps from days of a month to the number of documents that fall in a certain day.
the search query.
the timeline level.
the data source index or database name to query.
an instance of models.Aggregation consisting of models.MetaDataBucket, each representing a time unit with the number of documents for this unit.
Defines common methods for creating timeline instances based on document creation dates and time expressions matching a search query.
The trait is implemented by models.services.ESTimelineService.