docsearch-configs icon indicating copy to clipboard operation
docsearch-configs copied to clipboard

[ljsp] Missing results for query "str"

Open joe-crick opened this issue 3 years ago • 1 comments

I'm using Docusaurus 2.0. I have the following configuration:

 themeConfig: {
    algolia: {
      appId: "BH4D9OD16A",
      apiKey: "API_KEY", // using the API Key I received from Algolia
      indexName: "ljsp",
      searchParameters: {
        facetFilters: [
          "type:content",
          "version:current",
          "language:en",
          "docusaurus_tag:default",
        ],
      },
    },

@docusaurus/theme-search-algolia is installed as a dependency.

However, a search for anything returns no (0) results.

joe-crick avatar Nov 28 '21 17:11 joe-crick

Hey facetFilters are automatically sent with the contextualSearch option on Docusaurus v2: https://docusaurus.io/docs/search#contextual-search

shortcuts avatar Nov 28 '21 22:11 shortcuts