search: add manager kind to bleve (#103305)

pull/103278/head^2
Will Assis 2 months ago committed by GitHub
parent 5dad2b6c0f
commit db1f1c5df9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      pkg/storage/unified/resource/document.go
  2. 1
      pkg/storage/unified/search/bleve.go
  3. 10
      pkg/storage/unified/search/testdata/manual-dashboard.json
  4. 13
      pkg/storage/unified/search/testdata/manual-folder.json

@ -393,6 +393,11 @@ func StandardSearchFields() SearchableDocumentFields {
Type: ResourceTableColumnDefinition_INT64,
Description: "Deprecated legacy id of the resource",
},
{
Name: SEARCH_FIELD_MANAGER_KIND,
Type: ResourceTableColumnDefinition_STRING,
Description: "Type of manager, which is responsible for managing the resource",
},
})
if err != nil {
panic("failed to initialize standard search fields")

@ -1080,6 +1080,7 @@ func getAllFields(standard resource.SearchableDocumentFields, custom resource.Se
standard.Field(resource.SEARCH_FIELD_RV),
standard.Field(resource.SEARCH_FIELD_CREATED),
standard.Field(resource.SEARCH_FIELD_LEGACY_ID),
standard.Field(resource.SEARCH_FIELD_MANAGER_KIND),
}
if custom != nil {

@ -50,6 +50,13 @@
"description": "Deprecated legacy id of the resource",
"priority": 0
},
{
"name": "manager.kind",
"type": "string",
"format": "",
"description": "Type of manager, which is responsible for managing the resource",
"priority": 0
},
{
"name": "schema_version",
"type": "number",
@ -189,6 +196,7 @@
null,
null,
null,
"repo",
null,
null,
null,
@ -229,6 +237,7 @@
null,
null,
11,
"repo",
null,
null,
[
@ -272,6 +281,7 @@
null,
null,
10,
"repo",
null,
null,
[

@ -49,6 +49,13 @@
"format": "int64",
"description": "Deprecated legacy id of the resource",
"priority": 0
},
{
"name": "manager.kind",
"type": "string",
"format": "",
"description": "Type of manager, which is responsible for managing the resource",
"priority": 0
}
],
"rows": [
@ -60,7 +67,8 @@
null,
null,
null,
321
321,
null
],
"object": {
"kind": "folders",
@ -80,7 +88,8 @@
null,
null,
null,
123
123,
"repo"
],
"object": {
"kind": "folders",

Loading…
Cancel
Save