From 6d18a3b47d086cd714623c0266759c69b55f7ac0 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 6 Dec 2024 08:02:13 +0000 Subject: [PATCH] beclab/search3,aboveos/knowledge: 1. use simple configuration for english,german and so 2. limit short keyword language detected range --- .../templates/knowledge_deployment.yaml | 2 +- .../cluster/deploy/search3_server_deploy.yaml | 116 +++++++++++++++++- 2 files changed, 115 insertions(+), 3 deletions(-) diff --git a/apps/knowledge/config/user/helm-charts/knowledge/templates/knowledge_deployment.yaml b/apps/knowledge/config/user/helm-charts/knowledge/templates/knowledge_deployment.yaml index 4aafafa8..78e8e0fb 100644 --- a/apps/knowledge/config/user/helm-charts/knowledge/templates/knowledge_deployment.yaml +++ b/apps/knowledge/config/user/helm-charts/knowledge/templates/knowledge_deployment.yaml @@ -168,7 +168,7 @@ spec: value: user_space_{{ .Values.bfl.username }}_knowledge containers: - name: knowledge - image: "beclab/knowledge-base-api:v0.1.53" + image: "beclab/knowledge-base-api:v0.1.56" imagePullPolicy: IfNotPresent securityContext: allowPrivilegeEscalation: false diff --git a/apps/search3/config/cluster/deploy/search3_server_deploy.yaml b/apps/search3/config/cluster/deploy/search3_server_deploy.yaml index e33b2f92..10c3a22c 100644 --- a/apps/search3/config/cluster/deploy/search3_server_deploy.yaml +++ b/apps/search3/config/cluster/deploy/search3_server_deploy.yaml @@ -44,7 +44,119 @@ spec: scripts: - begin; - CREATE TEXT SEARCH CONFIGURATION chinese (PARSER = zhparser); - - ALTER TEXT SEARCH CONFIGURATION chinese ADD MAPPING FOR s,n,v,a,i,e,l WITH simple; + - ALTER TEXT SEARCH CONFIGURATION chinese ADD MAPPING FOR a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z WITH simple; + - ALTER TEXT SEARCH CONFIGURATION arabic DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION arabic DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION arabic ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION arabic ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION armenian DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION armenian DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION armenian ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION armenian ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION basque DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION basque DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION basque ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION basque ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION catalan DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION catalan DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION catalan ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION catalan ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION danish DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION danish DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION danish ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION danish ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION dutch DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION dutch DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION dutch ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION dutch ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION english DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION english DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION english ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION english ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION finnish DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION finnish DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION finnish ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION finnish ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION french DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION french DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION french ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION french ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION german DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION german DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION german ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION german ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION greek DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION greek DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION greek ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION greek ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION hindi DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION hindi DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION hindi ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION hindi ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION hungarian DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION hungarian DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION hungarian ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION hungarian ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION indonesian DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION indonesian DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION indonesian ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION indonesian ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION irish DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION irish DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION irish ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION irish ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION italian DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION italian DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION italian ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION italian ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION lithuanian DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION lithuanian DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION lithuanian ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION lithuanian ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION nepali DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION nepali DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION norwegian DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION norwegian DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION norwegian ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION norwegian ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION portuguese DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION portuguese DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION portuguese ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION portuguese ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION romanian DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION romanian DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION romanian ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION romanian ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION russian DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION russian DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION russian ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION russian ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION serbian DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION serbian DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION serbian ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION serbian ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION spanish DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION spanish DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION spanish ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION spanish ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION swedish DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION swedish DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION swedish ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION swedish ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION tamil DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION tamil DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION tamil ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION tamil ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION turkish DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION turkish DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION turkish ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION turkish ADD MAPPING FOR asciiword WITH simple; + - ALTER TEXT SEARCH CONFIGURATION yiddish DROP MAPPING FOR word; + - ALTER TEXT SEARCH CONFIGURATION yiddish DROP MAPPING FOR asciiword; + - ALTER TEXT SEARCH CONFIGURATION yiddish ADD MAPPING FOR word WITH simple; + - ALTER TEXT SEARCH CONFIGURATION yiddish ADD MAPPING FOR asciiword WITH simple; - commit; --- apiVersion: apps/v1 @@ -87,7 +199,7 @@ spec: value: os_system_search3 containers: - name: search3 - image: beclab/search3:v0.0.20 + image: beclab/search3:v0.0.24 imagePullPolicy: IfNotPresent ports: - containerPort: 8080