forked from cms/tibi-svelte-starter
✨ feat: enhance search capabilities and indexing across collections
This commit is contained in:
@@ -52,6 +52,77 @@ permissions:
|
||||
put: true
|
||||
delete: true
|
||||
|
||||
indexes:
|
||||
- name: content_text
|
||||
key:
|
||||
- "$text:$**"
|
||||
defaultLanguage: none
|
||||
background: true
|
||||
- name: path_lang
|
||||
key:
|
||||
- path
|
||||
- lang
|
||||
unique: true
|
||||
background: true
|
||||
- name: translation
|
||||
key:
|
||||
- translationKey
|
||||
- lang
|
||||
unique: true
|
||||
background: true
|
||||
|
||||
search:
|
||||
- name: combined
|
||||
mode: combined
|
||||
rrf:
|
||||
k: 60
|
||||
topK: 100
|
||||
weights:
|
||||
semantic: 1.5
|
||||
fuzzy: 1.0
|
||||
meta:
|
||||
label: { de: "Suche (Kombiniert)", en: "Search (Combined)" }
|
||||
|
||||
- name: fuzzy
|
||||
mode: ngram
|
||||
autoRegenerate: true
|
||||
fields:
|
||||
[
|
||||
name,
|
||||
path,
|
||||
"meta.title",
|
||||
"meta.description",
|
||||
"blocks.headline",
|
||||
"blocks.subline",
|
||||
"blocks.text",
|
||||
"blocks.items.title",
|
||||
"blocks.items.text",
|
||||
"blocks.items.question",
|
||||
"blocks.items.answer",
|
||||
]
|
||||
meta:
|
||||
label: { de: "Fuzzy (n-gram)", en: "Fuzzy (n-gram)" }
|
||||
|
||||
- name: semantic
|
||||
mode: vector
|
||||
autoRegenerate: true
|
||||
fields:
|
||||
[
|
||||
name,
|
||||
"meta.title",
|
||||
"meta.description",
|
||||
"blocks.headline",
|
||||
"blocks.subline",
|
||||
"blocks.text",
|
||||
"blocks.items.title",
|
||||
"blocks.items.text",
|
||||
"blocks.items.question",
|
||||
"blocks.items.answer",
|
||||
]
|
||||
vector: { provider: bge-m3 }
|
||||
meta:
|
||||
label: { de: "Semantisch (Vektor)", en: "Semantic (Vector)" }
|
||||
|
||||
imageFilter: !include lib/imageFilter.yml
|
||||
|
||||
fields:
|
||||
|
||||
Reference in New Issue
Block a user