typesense-instantsearch-adapter 2.4.1-3 → 2.4.2-0
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 +5 -1
- package/dist/typesense-instantsearch-adapter.min.js +1 -1
- package/dist/typesense-instantsearch-adapter.min.js.map +1 -1
- package/lib/SearchRequestAdapter.js +3 -1
- package/lib/SearchRequestAdapter.js.map +1 -1
- package/lib/SearchResponseAdapter.js +6 -1
- package/lib/SearchResponseAdapter.js.map +1 -1
- package/package.json +2 -1
- package/src/.DS_Store +0 -0
- package/src/Configuration.js +77 -0
- package/src/FacetSearchResponseAdapter.js +38 -0
- package/src/SearchRequestAdapter.js +323 -0
- package/src/SearchResponseAdapter.js +168 -0
- package/src/TypesenseInstantsearchAdapter.js +87 -0
- package/src/support/utils.js +15 -0
package/README.md
CHANGED
|
@@ -7,6 +7,8 @@ An adapter to use the awesome [Instantsearch.js](https://github.com/algolia/inst
|
|
|
7
7
|
|
|
8
8
|
Here is an example of UI you can build with this adapater: [songs-search.typesense.org](https://songs-search.typesense.org)
|
|
9
9
|
|
|
10
|
+
**Note:** If your search interface is built on a custom autocomplete component, or is based on [@algolia/autocomplete-js](https://www.algolia.com/doc/ui-libraries/autocomplete/introduction/what-is-autocomplete/), then you don't need this adapter to use it with Typesense, as [typesense-js](https://github.com/typesense/typesense-js) library already supports client-side fetching data from any async data sources. Read more [here](https://github.com/typesense/typesense-instantsearch-adapter/issues/88#issuecomment-1021597634).
|
|
11
|
+
|
|
10
12
|
## Quick Links
|
|
11
13
|
|
|
12
14
|
- [Background](#background)
|
|
@@ -15,7 +17,7 @@ Here is an example of UI you can build with this adapater: [songs-search.typesen
|
|
|
15
17
|
- [Installation](#installation)
|
|
16
18
|
- [Usage](#usage)
|
|
17
19
|
- [With instantsearch.js](#with-instantsearchjs)
|
|
18
|
-
- [With react-instantsearch](#with-react-instantsearch)
|
|
20
|
+
- [With react-instantsearch](#with-react-instantsearch) (also works with React Native)
|
|
19
21
|
- [With vue-instantsearch](#with-vue-instantsearch)
|
|
20
22
|
- [With angular-instantsearch](#with-angular-instantsearch)
|
|
21
23
|
- [Widget Specific Instructions](#widget-specific-instructions)
|
|
@@ -167,6 +169,8 @@ const App = () => (
|
|
|
167
169
|
|
|
168
170
|
You can then add any of the Instantsearch-React widgets [here](https://www.algolia.com/doc/guides/building-search-ui/widgets/showcase/react/) that are [supported](#widget-compatibility) by the adapter.
|
|
169
171
|
|
|
172
|
+
The instructions above also apply to React Native.
|
|
173
|
+
|
|
170
174
|
### With [vue-instantsearch](https://github.com/algolia/vue-instantsearch)
|
|
171
175
|
|
|
172
176
|
App.vue:
|