Skip to content

Commit

Permalink
docs: add configurable limit to search results (#1282)
Browse files Browse the repository at this point in the history
* docs: limit search results

Signed-off-by: Navendu Pottekkat <navendu@apache.org>

* Update with refer link to fuse docs

---------

Signed-off-by: Navendu Pottekkat <navendu@apache.org>
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
  • Loading branch information
pottekkat and adityatelange authored Aug 12, 2023
1 parent 7e5d17f commit fa57a84
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ params:
# distance: 1000
# threshold: 0.4
# minMatchCharLength: 0
# limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
# keys: ["title", "permalink", "summary", "content"]

markup:
Expand Down
1 change: 1 addition & 0 deletions content/posts/papermod/papermod-features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ params:
distance: 1000
threshold: 0.4
minMatchCharLength: 0
# limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
keys: ["title", "permalink", "summary", "content"]
```

Expand Down
1 change: 1 addition & 0 deletions content/posts/papermod/papermod-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ params:
distance: 1000
threshold: 0.4
minMatchCharLength: 0
limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
keys: ["title", "permalink", "summary", "content"]
menu:
main:
Expand Down
1 change: 1 addition & 0 deletions content/posts/papermod/papermod-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ fuseOpts:
distance: 1000
threshold: 0.4
minMatchCharLength: 0
limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
keys: ["title", "permalink", "summary", "content"] ## can be less but not more than shown in list
```

Expand Down

0 comments on commit fa57a84

Please sign in to comment.