feat(docs): added tips for facetFilters (#2680)
This commit is contained in:
parent
9a6f1a0cfa
commit
4210e3b503
2 changed files with 8 additions and 4 deletions
|
|
@ -133,6 +133,10 @@ in case you want to use different credentials for askAi
|
|||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
:::tip
|
||||
You can use `facetFilters: ['type:content']` to ensure AskAI only uses records where the `type` attribute is `content` (i.e., only records that actually have content). This is useful if your index contains records for navigation, metadata, or other non-content types.
|
||||
:::
|
||||
|
||||
## `searchParameters`
|
||||
|
||||
> `type: SearchParameters` | **optional**
|
||||
|
|
|
|||
|
|
@ -274,10 +274,6 @@ docsearch({
|
|||
</TabItem>
|
||||
|
||||
<TabItem value="react">
|
||||
```js
|
||||
|
||||
```
|
||||
|
||||
```jsx
|
||||
<DocSearch
|
||||
askAi={{
|
||||
|
|
@ -292,6 +288,10 @@ docsearch({
|
|||
|
||||
</Tabs>
|
||||
|
||||
:::tip
|
||||
You can use `facetFilters: ['type:content']` to ensure AskAI only uses records where the `type` attribute is `content` (i.e., only records that actually have content). This is useful if your index contains records for navigation, metadata, or other non-content types.
|
||||
:::
|
||||
|
||||
### Sending events
|
||||
|
||||
You can send search events to your DocSearch index by passing in the `insights` parameter when creating your DocSearch instance.
|
||||
|
|
|
|||
Loading…
Reference in a new issue