-
Notifications
You must be signed in to change notification settings - Fork 389
Open
Labels
documentationDoc improvements & quarto-webDoc improvements & quarto-web
Description
We should store our search index configuration somewhere in quarto-web so it can be under version control.
We could then make configuring the index settings part of the Upload Index workflow by using set_settings() in upload-algolia.rb
For example, our current configuration for prod_QUARTO (exported from web GUI 2025-01-17) is:
{
"settings": {
"minWordSizefor1Typo": 4,
"minWordSizefor2Typos": 8,
"hitsPerPage": 20,
"maxValuesPerFacet": 100,
"attributesToIndex": [
"unordered(title)",
"unordered(section)",
"unordered(text)",
"unordered(href)"
],
"numericAttributesToIndex": null,
"attributesToRetrieve": null,
"unretrievableAttributes": null,
"optionalWords": null,
"attributesForFaceting": null,
"attributesToSnippet": null,
"attributesToHighlight": null,
"paginationLimitedTo": 1000,
"attributeForDistinct": null,
"exactOnSingleWordQuery": "attribute",
"synonyms": [
[
"math",
"maths"
]
],
"ranking": [
"typo",
"geo",
"words",
"filters",
"proximity",
"attribute",
"exact",
"custom"
],
"customRanking": [
"desc(guide)"
],
"separatorsToIndex": "\"_\"",
"removeWordsIfNoResults": "none",
"queryType": "prefixLast",
"highlightPreTag": "<em>",
"highlightPostTag": "</em>",
"alternativesAsExact": [
"ignorePlurals",
"singleWordSynonym"
]
},
"rules": [],
"synonyms": [
{
"type": "synonym",
"synonyms": [
"math",
"maths"
],
"objectID": "ai_optim_515edecd-2e6b-4a7b-8a92-7b17df3745e8"
}
]
}cderv
Metadata
Metadata
Assignees
Labels
documentationDoc improvements & quarto-webDoc improvements & quarto-web