search: add manager kind to bleve (#103305)

This commit is contained in:
Will Assis
2025-04-03 10:02:02 +03:00
committed by GitHub
parent 5dad2b6c0f
commit db1f1c5df9
4 changed files with 27 additions and 2 deletions
+5
View File
@@ -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")
+1
View File
@@ -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,
[
+11 -2
View File
@@ -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",