You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can find more about configuring `@nuxtjs/algolia`[here](/getting-started/configuration).
29
29
::
30
30
31
-
3.**Lastly, add[ALGOLIA_API_KEY](https://www.algolia.com/doc/guides/security/api-keys/) and [ALGOLIA_APPLICATION_ID](https://www.algolia.com/account/api-keys/) to the .env**
31
+
3.**Add[ALGOLIA_API_KEY](https://www.algolia.com/doc/guides/security/api-keys/) and [ALGOLIA_APPLICATION_ID](https://www.algolia.com/account/api-keys/) to the .env**
For more details check out the official documentation of this method [here](https://www.algolia.com/doc/api-client/methods/search/)
44
38
39
+
## `useAsyncAlgoliaSearch`
40
+
41
+
Async wrapper around `useAlgoliaSearch` composable that decreases the number of steps needed to use Algolia with `useAsyncData` while maintaining the same functionality. The response will have a form described [here](https://www.algolia.com/doc/api-reference/api-methods/search/#response) and will be wrapped around `useAsyncData` so you will have access to `data`, `error`, and other properties.
This composable accepts an object as a param with following properties:
54
+
55
+
*`indexName` - the name of you index in Algolia dashboard. For more details about initializing index check out the official documentation [here](https://www.algolia.com/doc/api-client/getting-started/instantiate-client-index/javascript/?client=javascript#initialize-an-index). If you passed a global index in your module configuration, this property can be skipped.
56
+
*`query` - a keywoard, sentence, or text that you want to search the index with.
57
+
*`requestOptions` optional object with options for the request like filters. You can check more about is [here](https://www.algolia.com/doc/api-reference/api-methods/search/#method-param-requestoptions)
58
+
45
59
## `useAlgoliaFacetedSearch`
46
60
47
61
Use this composable to search using facet values like `category`, `phone`.
0 commit comments