nuxt-modules / algolia

🔎 Algolia module for Nuxt
https://algolia.nuxtjs.org/
MIT License
189 stars 35 forks source link

Import full algoliasearch client instead of the lite one #140

Closed LoMonacoSalvatore closed 1 year ago

LoMonacoSalvatore commented 1 year ago

Is your feature request related to a problem? Please describe.

I found myself needing to use the getObject and getObjects functions of the index, but since you are importing the lite algoliasearch client I can't use those.

Describe the solution you'd like

Either add a module option for switching loaded client or just import the full one.

Describe alternatives you've considered

Using the algoliasearch vanilla client

LoMonacoSalvatore commented 1 year ago

Found the solutions on the documents!

By default the module imports algoliasearch-lite, so to get access to all the functions of algoliasearch just set the key lite: false in the config options.

Baroshem commented 1 year ago

Hey @LoMonacoSalvatore

This is exactly what you needed. Glad you have found it in the docs.

Happy coding!