1
0
Fork 0

feat(docs): added tips for facetFilters (#2680)

This commit is contained in:
Natan Yagudayev 2025-07-23 10:08:04 -04:00 committed by GitHub
parent 9a6f1a0cfa
commit 4210e3b503
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

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

View file

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