typesense-instantsearch-adapter 2.4.1-1 → 2.4.1-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -297,7 +297,13 @@ The generalized pattern for the value attribute is: `<index_name>[/sort/<sort_by
|
|
|
297
297
|
|
|
298
298
|
### `configure`
|
|
299
299
|
|
|
300
|
-
If you need to specify a `filter_by` search parameter for Typesense, you want to use the
|
|
300
|
+
If you need to specify a `filter_by` search parameter for Typesense, you want to use the `configure` InstantSearch widget, along with `facetFilters`, `numericFilters` or `filters`.
|
|
301
|
+
|
|
302
|
+
The format for `facetFilters` and `numericFilters` is the same as Algolia's as described [here](https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/).
|
|
303
|
+
But `filters` needs to be in Typesense's `filter_by` format as described in this table [here](https://typesense.org/docs/latest/api/documents.html#query-parameters).
|
|
304
|
+
|
|
305
|
+
Setting `filter_by` inside the `additionalQueryParameters` config only works when the widgets are loaded initially, because InstantSearch internally overrides the `filter_by` field subsequently.
|
|
306
|
+
Read more [here](https://github.com/typesense/typesense-instantsearch-adapter/issues/17#issuecomment-746912375).
|
|
301
307
|
|
|
302
308
|
### `index`
|
|
303
309
|
|