parent
d7f5e00704
commit
f241cc7869
2 changed files with 6 additions and 7 deletions
|
|
@ -176,8 +176,6 @@ You can now use them to [filter your search in the frontend][16]
|
|||
|
||||
### Boost search results with `pageRank`
|
||||
|
||||
_[`pageRank`](#pagerank) used to be an **integer**, it is now a **string**_
|
||||
|
||||
This parameter allow you to boost records built from the current `pathsToMatch`. Pages with highest [`pageRank`](#pagerank) will be returned before pages with a lower [`pageRank`](#pagerank). Note that you can pass any numeric value **as a string**, including negative values:
|
||||
|
||||
```js
|
||||
|
|
@ -194,7 +192,7 @@ This parameter allow you to boost records built from the current `pathsToMatch`.
|
|||
lvl4: "article h5",
|
||||
lvl5: "article h6",
|
||||
content: "article p, article li",
|
||||
pageRank: "30",
|
||||
pageRank: 30,
|
||||
},
|
||||
});
|
||||
},
|
||||
|
|
@ -274,7 +272,7 @@ type Lvl0 = {
|
|||
|
||||
### `pageRank`
|
||||
|
||||
> `type: string` | **optional**
|
||||
> `type: number` | **optional**
|
||||
|
||||
See the [live example](#boost-search-results-with-pagerank)
|
||||
|
||||
|
|
|
|||
|
|
@ -162,9 +162,10 @@ function Home() {
|
|||
Made for Developer docs
|
||||
</h4>
|
||||
<p className="mt-2 text-base leading-6 text-description">
|
||||
Initially created to fulfill our own documentation needs,
|
||||
DocSearch eventually became a community project for open source docs.
|
||||
But, now it is available for any/all kinds of developer documentation.
|
||||
Initially created to fulfill our own documentation
|
||||
needs, DocSearch eventually became a community project
|
||||
for open source docs. But, now it is available for
|
||||
any/all kinds of developer documentation.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue