Skip to content

[Docusaurus] No results on documentation pagesΒ #1003

@Szandi89

Description

@Szandi89

Describe the bug

I have multiple product documentations inside one docusaurus. The search on home page returns data from all documentations, and I can filter them. However, it is not working on documentation pages - there are no results. If I change the url to have some capital letters, the search works like on the homepage- there is a fallback to the "default" when the casing does not match.

To Reproduce

I have multiple product documentations inside one docusaurus. It is solved by

'@docusaurus/plugin-content-docs',
{
id: 'portal',
path: '../MD_Files/portal',
routeBasePath: 'portal',
includeCurrentVersion: true,
lastVersion: 'current',
versions: {
current: {
label: 'Portal version 7.2',
}
},
},

everything is with lowercase - id, routeBasePath.
My browser url is http://localhost:3000/portal and I search for "a"- I receive no results (GetOramaSearchWithDocs -> plugin id is portal)
If my url is http://localhost:3000/Portal - I receive results from all products - here the plugin id is "default".

I have only
'@orama/plugin-docusaurus-v3',
{
analytics: {
enabled: false,
},
},

Expected behavior

I expect to return serach results only from portal when I am on the portal page. How should I configure orama to return results when pluginId is correctly set?

Environment Info

@docusaurus/core": "^3.9.2",
@orama/plugin-docusaurus-v3": "^3.1.16"

Affected areas

Search

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions