Search: Include panel_type in query (#63229)

This commit is contained in:
Ryan McKinley
2023-03-01 11:13:09 -08:00
committed by GitHub
parent 157c270ad3
commit fcffedbbf9
7 changed files with 48 additions and 26 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ func getDashboardPanelDocs(dash dashboard, location string) []*bluge.Document {
AddField(bluge.NewKeywordField(documentFieldLocation, location).Aggregatable().StoreValue()).
AddField(bluge.NewKeywordField(documentFieldKind, string(entityKindPanel)).Aggregatable().StoreValue()) // likely want independent index for this
for _, ref := range dash.summary.References {
for _, ref := range panel.References {
switch ref.Family {
case entity.StandardKindDashboard:
if ref.Type != "" {