search: add manager kind to bleve (#103305)
This commit is contained in:
@@ -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,
|
||||
[
|
||||
|
||||
+11
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user