Skip to content

Commit f6f8c9a

Browse files
authored
Fix(hugo.json): fix related configuration for hugo 0.111.0 and above (#3463)
1 parent 8fe7ed8 commit f6f8c9a

File tree

1 file changed

+57
-1
lines changed

1 file changed

+57
-1
lines changed

src/schemas/json/hugo.json

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2663,12 +2663,31 @@
26632663
"includeNewer": false,
26642664
"indices": [
26652665
{
2666+
"applyFilter": false,
2667+
"cardinalityThreshold": 0,
26662668
"name": "keywords",
2669+
"pattern": "",
2670+
"toLower": false,
2671+
"type": "basic",
26672672
"weight": 100
26682673
},
26692674
{
2675+
"applyFilter": false,
2676+
"cardinalityThreshold": 0,
26702677
"name": "date",
2678+
"pattern": "",
2679+
"toLower": false,
2680+
"type": "basic",
26712681
"weight": 10
2682+
},
2683+
{
2684+
"applyFilter": false,
2685+
"cardinalityThreshold": 0,
2686+
"name": "tags",
2687+
"pattern": "",
2688+
"toLower": false,
2689+
"type": "basic",
2690+
"weight": 80
26722691
}
26732692
],
26742693
"threshold": 80,
@@ -2701,12 +2720,31 @@
27012720
"type": "array",
27022721
"default": [
27032722
{
2723+
"applyFilter": false,
2724+
"cardinalityThreshold": 0,
27042725
"name": "keywords",
2726+
"pattern": "",
2727+
"toLower": false,
2728+
"type": "basic",
27052729
"weight": 100
27062730
},
27072731
{
2732+
"applyFilter": false,
2733+
"cardinalityThreshold": 0,
27082734
"name": "date",
2735+
"pattern": "",
2736+
"toLower": false,
2737+
"type": "basic",
27092738
"weight": 10
2739+
},
2740+
{
2741+
"applyFilter": false,
2742+
"cardinalityThreshold": 0,
2743+
"name": "tags",
2744+
"pattern": "",
2745+
"toLower": false,
2746+
"type": "basic",
2747+
"weight": 80
27102748
}
27112749
],
27122750
"items": {
@@ -2717,9 +2755,27 @@
27172755
"type": "string",
27182756
"minLength": 1
27192757
},
2758+
"type": {
2759+
"description": "The index type\nhttps://gohugo.io/content-management/related/#config-options-per-index",
2760+
"type": "string",
2761+
"default": "basic",
2762+
"enum": ["basic", "fragments"]
2763+
},
2764+
"applyFilter": {
2765+
"description": "Apply a type specific filter to the result of a search. This is currently only used for the fragments type\nhttps://gohugo.io/content-management/related/#config-options-per-index",
2766+
"type": "boolean",
2767+
"default": false
2768+
},
27202769
"weight": {
27212770
"description": "The weight indicating how important this parameter is relative to the other parameters\nhttps://gohugo.io/content-management/related/#config-options-per-index",
2722-
"type": "string"
2771+
"type": "integer"
2772+
},
2773+
"cardinalityThreshold": {
2774+
"description": "A percentage (0-100) used to remove common keywords from the index\nhttps://gohugo.io/content-management/related/#config-options-per-index",
2775+
"type": "integer",
2776+
"default": 0,
2777+
"minimum": 0,
2778+
"maximum": 100
27232779
},
27242780
"pattern": {
27252781
"description": "The date format\nhttps://gohugo.io/content-management/related/#config-options-per-index",

0 commit comments

Comments
 (0)