Skip to content

DocSearch not returning hits #158

@cossssmin

Description

@cossssmin

Version

@nuxtjs/algolia: v1.8.0
nuxt: v3.6.2

Reproduction Link

Nuxt config: https://github.com/cossssmin/docs-nuxt3/blob/main/nuxt.config.ts

Component: https://github.com/cossssmin/docs-nuxt3/blob/main/components/DocSearch.vue

Steps to reproduce

See demo: https://amazing-trifle-bf003d.netlify.app/

Click the search box and try searching for template, for example. hits is returned empty although the index exists and all env variables are set.

What is Expected?

The search to work like on maizzle.com (it uses the same api key/app id/index name).

What is actually happening?

hits returning empty.

From what I can see only the library versions are different in the query strings, could that be causing it?

Working version request URL (on maizzle.com):

https://o3q5hjsv88-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20JavaScript%20(4.8.5)%3B%20Browser%20(lite)%3B%20docsearch%20(3.3.3)%3B%20docsearch-react%20(3.3.3)%3B%20docsearch.js%20(3.3.3)&x-algolia-api-key=c219dd150c753f261239c1e3087ce60f&x-algolia-application-id=O3Q5HJSV88

@nuxtjs/algolia, not working:

https://o3q5hjsv88-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20JavaScript%20(4.8.5)%3B%20Browser%20(lite)%3B%20docsearch%20(3.5.1)%3B%20docsearch-react%20(3.5.1)%3B%20docsearch.js%20(3.5.1)&x-algolia-api-key=c219dd150c753f261239c1e3087ce60f&x-algolia-application-id=O3Q5HJSV88

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions