-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocsearch.config.json
70 lines (70 loc) · 2.74 KB
/
docsearch.config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"index_name": "calliope-docs",
"start_urls": [
"https://docs.calliope.cc"
],
"sitemap_urls": [
"https://docs.calliope.cc/sitemap.xml"
],
"sitemap_alternate_links": true,
"stop_urls": [
"/1"
],
"selectors": {
"lvl0": {
"selector": "(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]",
"type": "xpath",
"global": true,
"default_value": "Dokumentation"
},
"lvl1": "article h1",
"lvl2": "article h2",
"lvl3": "article h3",
"lvl4": "article h4",
"lvl5": "article h5, article th",
"lvl6": "article h6",
"text": "article p, article li, article td"
},
"strip_chars": " .,;:#",
"custom_settings": {
"field_definitions": [
{"name": "anchor", "type": "string", "optional": true},
{"name": "content", "type": "string", "optional": true},
{"name": "url", "type": "string", "facet": true},
{"name": "url_without_anchor", "type": "string", "facet": true, "optional": true},
{"name": "version", "type": "string[]", "facet": true, "optional": true},
{"name": "hierarchy.lvl0", "type": "string", "facet": true, "optional": true},
{"name": "hierarchy.lvl1", "type": "string", "facet": true, "optional": true},
{"name": "hierarchy.lvl2", "type": "string", "facet": true, "optional": true},
{"name": "hierarchy.lvl3", "type": "string", "facet": true, "optional": true},
{"name": "hierarchy.lvl4", "type": "string", "facet": true, "optional": true},
{"name": "hierarchy.lvl5", "type": "string", "facet": true, "optional": true},
{"name": "hierarchy.lvl6", "type": "string", "facet": true, "optional": true},
{"name": "type", "type": "string", "facet": true, "optional": true},
{"name": ".*_tag", "type": "string", "facet": true, "optional": true},
{"name": "language", "type": "string", "facet": true, "optional": true},
{"name": "tags", "type": "string[]", "facet": true, "optional": true},
{"name": "item_priority", "type": "int64"},
{
"name": "embedding",
"type": "float[]",
"embed": {
"from": [
"content",
"hierarchy.lvl0",
"hierarchy.lvl1",
"hierarchy.lvl2",
"hierarchy.lvl3",
"hierarchy.lvl4",
"hierarchy.lvl5",
"hierarchy.lvl6",
"tags"
],
"model_config": {
"model_name": "ts/all-MiniLM-L12-v2"
}
}
}
]
}
}