docs: fix tag filters in search (#8862)
This commit is contained in:
@@ -66,13 +66,13 @@
|
||||
"@react-hook/resize-observer": "^1.2.6",
|
||||
"@segment/analytics-next": "^1.55.0",
|
||||
"@uidotdev/usehooks": "^2.4.1",
|
||||
"algoliasearch": "^5.0.0",
|
||||
"algoliasearch": "^5.2.1",
|
||||
"framer-motion": "^11.3.21",
|
||||
"mermaid": "^10.9.0",
|
||||
"npm-to-yarn": "^2.1.0",
|
||||
"prism-react-renderer": "2.3.1",
|
||||
"react-google-recaptcha": "^3.1.0",
|
||||
"react-instantsearch": "^7.12.4",
|
||||
"react-instantsearch": "^7.13.0",
|
||||
"react-markdown": "^8.0.7",
|
||||
"react-medium-image-zoom": "^5.1.10",
|
||||
"react-tooltip": "^5.21.3",
|
||||
|
||||
@@ -8,8 +8,8 @@ import { SearchSuggestions, type SearchSuggestionType } from "./Suggestions"
|
||||
import { AlgoliaProps, useSearch } from "@/providers"
|
||||
import { checkArraySameElms } from "@/utils"
|
||||
import { SearchHitsWrapper } from "./Hits"
|
||||
import { Button, Kbd, SelectBadge, SpinnerLoading } from "@/components"
|
||||
import { MagnifyingGlass, XMark } from "@medusajs/icons"
|
||||
import { Button, SelectBadge, SpinnerLoading } from "@/components"
|
||||
import { XMark } from "@medusajs/icons"
|
||||
import { useSearchNavigation, type OptionType } from "@/hooks"
|
||||
import { SearchFooter } from "./Footer"
|
||||
|
||||
@@ -150,7 +150,10 @@ export const Search = ({
|
||||
>
|
||||
<SearchHitsWrapper
|
||||
configureProps={{
|
||||
tagRefinements: filters,
|
||||
// filters array has to be wrapped
|
||||
// in another array for an OR condition
|
||||
// to be applied between the items.
|
||||
tagFilters: [filters],
|
||||
}}
|
||||
indices={algolia.indices}
|
||||
checkInternalPattern={checkInternalPattern}
|
||||
|
||||
Reference in New Issue
Block a user