mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Storage: Dashboard summary builder cleanup (#56665)
This commit is contained in:
@@ -213,13 +213,13 @@ func getDashboardPanelDocs(dash dashboard, location string) []*bluge.Document {
|
||||
Aggregatable().
|
||||
SearchTermPositions())
|
||||
}
|
||||
case models.StandardKindPanel:
|
||||
if ref.Type != "" {
|
||||
doc.AddField(bluge.NewKeywordField(documentFieldPanelType, ref.Type).Aggregatable().StoreValue())
|
||||
case models.ExternalEntityReferencePlugin:
|
||||
if ref.Type == models.StandardKindPanel && ref.UID != "" {
|
||||
doc.AddField(bluge.NewKeywordField(documentFieldPanelType, ref.UID).Aggregatable().StoreValue())
|
||||
}
|
||||
case models.StandardKindTransform:
|
||||
if ref.Type != "" {
|
||||
doc.AddField(bluge.NewKeywordField(documentFieldTransformer, ref.Type).Aggregatable())
|
||||
case models.ExternalEntityReferenceRuntime:
|
||||
if ref.Type == models.ExternalEntityReferenceRuntime_Transformer && ref.UID != "" {
|
||||
doc.AddField(bluge.NewKeywordField(documentFieldTransformer, ref.UID).Aggregatable())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user