elastic / search-ui

Search UI. Libraries for the fast development of modern, engaging search experiences.
https://docs.elastic.co/search-ui
Apache License 2.0
1.91k stars 368 forks source link

SSR support for results pages #673

Open janoschherrmann opened 2 years ago

janoschherrmann commented 2 years ago

Is your feature request related to a problem? Please describe. Kind of. I run a website where I would love for some search results pages to rank in Google. Currently, these pages aren't being indexed by Google, presumably because the content isn't rendered server-side.

Describe the solution you'd like I'd love to have the option for search results pages to be generated server-side, so that they would be picked up by search engines. I'm using NextJS, so having a way to combine Search UI and Next for SSR would be awesome.

Describe alternatives you've considered The current alternative as described by @joemcelroy on Slack would be interact with the Search API directly, instead of using Search UI.

Additional context Add any other context or screenshots about the feature request here.

684efs3 commented 2 years ago

This would be great!

JasonStoltz commented 2 years ago

We hear ya. We definitely want to get this done soon.

janoschherrmann commented 1 year ago

Hey @JasonStoltz, is there an update on this? This would be a game-changer when it comes to SEO!

JasonStoltz commented 1 year ago

Hey @janoschsworkspace, we haven't had the time to get to this, but it is definitely on the top of our priority list!

jzsplk commented 1 year ago

Hello, I encountered the same issue as described above. Could you please provide an update on the progress of this problem? Thank you!

joemcelroy commented 1 year ago

Hi there - there hasn't been any progress yet. We have big changes planned soon for Search UI and will share soon.

If you need SSR support today, its worth looking into building your own components, using the app-search-javascript client in a SSR framework like next.js.

If you're using Elasticsearch directly, another alternative is using searchkit which with instantsearch, supports SSR.