mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Elasticsearch: Add word highlighting to search results (#30293)
* Elasticsearch: Add word highlighting to logs * Remove unused deps; refactor matching code to remove matchAll * Adding searchWords test * Adding two matches for highlighting * Adding code comments * formatting comments
This commit is contained in:
@@ -26,6 +26,11 @@ export const movingAvgModelOptions: MovingAverageModelOption[] = [
|
||||
{ label: 'Holt Winters', value: 'holt_winters' },
|
||||
];
|
||||
|
||||
export const highlightTags = {
|
||||
pre: '@HIGHLIGHT@',
|
||||
post: '@/HIGHLIGHT@',
|
||||
};
|
||||
|
||||
export function defaultMetricAgg(id = '1'): MetricAggregation {
|
||||
return { type: 'count', id };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user