Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aboveos/search3,aboveos/knowledge: search optimization #720

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
116 changes: 114 additions & 2 deletions apps/search3/config/cluster/deploy/search3_server_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading