docs: add configurable limit to search results (#1282)

* 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>
This commit is contained in:
Navendu Pottekkat 2023-08-12 13:22:40 +05:30 committed by GitHub
parent 7e5d17f08a
commit fa57a841c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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"]
```

View File

@ -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:

View File

@ -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
```