Skip to content

Commit

Permalink
add configuration for search extractor, needs owncloud/ocis#5221
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Jan 27, 2023
1 parent 08943e7 commit 19ff9d6
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 0 deletions.
60 changes: 60 additions & 0 deletions charts/ocis/docs/values-desc-table.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,12 @@ a| [subs=-attributes]
a| [subs=-attributes]
see detailed service configuration options below
| IDM service. Not used if `features.externalUserManagement.enabled` equals `true`.
| services.idm.persistence
a| [subs=-attributes]
+object+
a| [subs=-attributes]
see detailed persistence configuration options below
| Persistence settings.
| services.idm.persistence.accessModes
a| [subs=-attributes]
+list+
Expand Down Expand Up @@ -768,6 +774,12 @@ a| [subs=-attributes]
a| [subs=-attributes]
see detailed service configuration options below
| NATS service.
| services.nats.persistence
a| [subs=-attributes]
+object+
a| [subs=-attributes]
see detailed persistence configuration options below
| Persistence settings.
| services.nats.persistence.accessModes
a| [subs=-attributes]
+list+
Expand Down Expand Up @@ -882,6 +894,30 @@ a| [subs=-attributes]
a| [subs=-attributes]
see detailed service configuration options below
| SEARCH service.
| services.search.extractor
a| [subs=-attributes]
+object+
a| [subs=-attributes]
see detailed search extractor configuration options below
| Search Extractor settings.
| services.search.extractor.tika.url
a| [subs=-attributes]
+string+
a| [subs=-attributes]
`"http://tika.tika.svc.cluster.local:9998"`
| Set the URL to Tika. Only applicable if `services.search.extractor.type` == `tika`.
| services.search.extractor.type
a| [subs=-attributes]
+string+
a| [subs=-attributes]
`"basic"`
| Configures the search extractor type to be used. Possible extractors: - `basic`: the default search extractor. - `tika`: the Tika search extractor. If set to this value, additional settings in the `tika` section apply.
| services.search.persistence
a| [subs=-attributes]
+object+
a| [subs=-attributes]
see detailed persistence configuration options below
| Persistence settings.
| services.search.persistence.accessModes
a| [subs=-attributes]
+list+
Expand Down Expand Up @@ -996,6 +1032,12 @@ a| [subs=-attributes]
a| [subs=-attributes]
see detailed service configuration options below
| STORAGE-SYSTEM service.
| services.storageSystem.persistence
a| [subs=-attributes]
+object+
a| [subs=-attributes]
see detailed persistence configuration options below
| Persistence settings.
| services.storageSystem.persistence.accessModes
a| [subs=-attributes]
+list+
Expand Down Expand Up @@ -1074,6 +1116,12 @@ a| [subs=-attributes]
a| [subs=-attributes]
`"* * * * *"`
| Cron pattern for the job to be run. Defaults to every minute.
| services.storageUsers.persistence
a| [subs=-attributes]
+object+
a| [subs=-attributes]
see detailed persistence configuration options below
| Persistence settings.
| services.storageUsers.persistence.accessModes
a| [subs=-attributes]
+list+
Expand Down Expand Up @@ -1176,6 +1224,12 @@ a| [subs=-attributes]
a| [subs=-attributes]
see detailed service configuration options below
| STORE service.
| services.store.persistence
a| [subs=-attributes]
+object+
a| [subs=-attributes]
see detailed persistence configuration options below
| Persistence settings.
| services.store.persistence.accessModes
a| [subs=-attributes]
+list+
Expand Down Expand Up @@ -1242,6 +1296,12 @@ a| [subs=-attributes]
a| [subs=-attributes]
see detailed service configuration options below
| THUMBNAILS service.
| services.thumbnails.persistence
a| [subs=-attributes]
+object+
a| [subs=-attributes]
see detailed persistence configuration options below
| Persistence settings.
| services.thumbnails.persistence.accessModes
a| [subs=-attributes]
+list+
Expand Down
24 changes: 24 additions & 0 deletions charts/ocis/docs/values.adoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ services:
# -- IDM service. Not used if `features.externalUserManagement.enabled` equals `true`.
# @default -- see detailed service configuration options below
idm:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations, except `features.externalUserManagement.enabled` equals `true`.
Expand Down Expand Up @@ -458,6 +460,8 @@ services:
# -- NATS service.
# @default -- see detailed service configuration options below
nats:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -516,6 +520,18 @@ services:
# -- SEARCH service.
# @default -- see detailed service configuration options below
search:
# -- Search Extractor settings.
# @default -- see detailed search extractor configuration options below
extractor:
# -- Configures the search extractor type to be used. Possible extractors:
# - `basic`: the default search extractor.
# - `tika`: the Tika search extractor. If set to this value, additional settings in the `tika` section apply.
type: basic
tika:
# -- Set the URL to Tika. Only applicable if `services.search.extractor.type` == `tika`.
url: http://tika.tika.svc.cluster.local:9998
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -573,6 +589,8 @@ services:
# -- STORAGE-SYSTEM service.
# @default -- see detailed service configuration options below
storageSystem:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -649,6 +667,8 @@ services:
enabled: false
# -- Cron pattern for the job to be run. Defaults to every minute.
schedule: "* * * * *"
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -683,6 +703,8 @@ services:
# -- STORE service.
# @default -- see detailed service configuration options below
store:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -716,6 +738,8 @@ services:
# -- THUMBNAILS service.
# @default -- see detailed service configuration options below
thumbnails:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Is recommended to be enabled on production installations.
Expand Down
14 changes: 14 additions & 0 deletions charts/ocis/templates/search/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ spec:
- name: SEARCH_EVENTS_ENDPOINT
value: nats:9233

{{- if eq .Values.services.search.extractor.type "tika" }}
- name: SEARCH_EXTRACTOR_TYPE
value: tika

- name: SEARCH_EXTRACTOR_TIKA_TIKA_URL
value: {{ .Values.services.search.extractor.tika.url | quote }}
{{- else }}
- name: SEARCH_EXTRACTOR_TYPE
value: basic
{{- end }}

- name: SEARCH_EXTRACTOR_CS3SOURCE_INSECURE
value: {{ .Values.insecure.ocisHttpApiInsecure | quote }}

- name: SEARCH_MACHINE_AUTH_API_KEY
valueFrom:
secretKeyRef:
Expand Down
24 changes: 24 additions & 0 deletions charts/ocis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ services:
# -- IDM service. Not used if `features.externalUserManagement.enabled` equals `true`.
# @default -- see detailed service configuration options below
idm:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations, except `features.externalUserManagement.enabled` equals `true`.
Expand Down Expand Up @@ -457,6 +459,8 @@ services:
# -- NATS service.
# @default -- see detailed service configuration options below
nats:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -515,6 +519,18 @@ services:
# -- SEARCH service.
# @default -- see detailed service configuration options below
search:
# -- Search Extractor settings.
# @default -- see detailed search extractor configuration options below
extractor:
# -- Configures the search extractor type to be used. Possible extractors:
# - `basic`: the default search extractor.
# - `tika`: the Tika search extractor. If set to this value, additional settings in the `tika` section apply.
type: basic
tika:
# -- Set the URL to Tika. Only applicable if `services.search.extractor.type` == `tika`.
url: http://tika.tika.svc.cluster.local:9998
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -572,6 +588,8 @@ services:
# -- STORAGE-SYSTEM service.
# @default -- see detailed service configuration options below
storageSystem:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -648,6 +666,8 @@ services:
enabled: false
# -- Cron pattern for the job to be run. Defaults to every minute.
schedule: "* * * * *"
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -682,6 +702,8 @@ services:
# -- STORE service.
# @default -- see detailed service configuration options below
store:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Needs to be enabled on production installations.
Expand Down Expand Up @@ -715,6 +737,8 @@ services:
# -- THUMBNAILS service.
# @default -- see detailed service configuration options below
thumbnails:
# -- Persistence settings.
# @default -- see detailed persistence configuration options below
persistence:
# -- Enables persistence.
# Is recommended to be enabled on production installations.
Expand Down

0 comments on commit 19ff9d6

Please sign in to comment.