Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lvl0 Results.title category header is empty #2294

Open
Zhengqbbb opened this issue Aug 15, 2024 · 4 comments
Open

lvl0 Results.title category header is empty #2294

Zhengqbbb opened this issue Aug 15, 2024 · 4 comments
Labels
Investigation in progress This issue is being investigated

Comments

@Zhengqbbb
Copy link

Zhengqbbb commented Aug 15, 2024

Description

https://github.com/algolia/docsearch/discussions/2293

Recently, I have noticed that docsearch does not display the lvl0 title.
I would like to know the reason or what configuration needs to be changed or API response have updated ?
As far as I know, all the documentation for VitePress has been affected :

https://vuejs.org/
https://vitejs.dev/
https://vueuse.org/
https://pinia.vuejs.org/

image

Live reproduction

https://codesandbox.io/p/sandbox/great-surf-xzx9nm?workspaceId=120223f7-8927-4918-87ea-e72992f554b5

image

Expected behavior

show lvl0 title

image

Environment

  • OS: macOS
  • Browser: Chrome
  • DocSearch version: 3.6.0
@randombeeper
Copy link
Collaborator

@Zhengqbbb thank you for reporting this. We are aware of an issue and are investigating!

@randombeeper randombeeper added the Investigation in progress This issue is being investigated label Aug 15, 2024
@levimichael
Copy link
Contributor

@Zhengqbbb for now, you can explicitly add attributesToHighlight: ['hierarchy.lvl0'] to the searchParameters

Here's a reproduction based on your CodeSandbox: https://codesandbox.io/p/sandbox/vitepress-repo-fix-4kqsfn

@Zhengqbbb Zhengqbbb changed the title lvl0 Results.title category header is empty on vitepress doc lvl0 Results.title category header is empty Aug 16, 2024
@Zhengqbbb
Copy link
Author

Zhengqbbb commented Aug 16, 2024

@Zhengqbbb for now, you can explicitly add attributesToHighlight: ['hierarchy.lvl0'] to the searchParameters

Thanks, the configure can be displayed normally ~

CleanShot 2024-08-16 at 10 52 01@2x

I have viewed through many documents and found that they also have issues. It seems that there is a problem with the API results and the component's judgment.
Hoping the investigation can be completed soon. 🧐

image image image
https://tailwindcss.com/ https://remix.run/docs https://laravel.com/docs/master

@brc-dd
Copy link
Contributor

brc-dd commented Sep 27, 2024

Fixed by #2309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigation in progress This issue is being investigated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants