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

Feature: add Solr result data to Rest API search endpoint #465

Open
kshaner opened this issue Jul 24, 2020 · 2 comments
Open

Feature: add Solr result data to Rest API search endpoint #465

kshaner opened this issue Jul 24, 2020 · 2 comments

Comments

@kshaner
Copy link
Contributor

kshaner commented Jul 24, 2020

SolrPower has no Rest API integration at this point and would be nice to have going forward when building single page applications. I envision two possible scenarios:

  1. It would be nice to have solr data available on /wp/v2/search endpoint. I imagine adding a item.solr object to each item in the collection containing the highlight and perhaps the score. Every other field should be covered by default fields.

  2. Build a dedicated solr-power namespace with a route for search results and search suggestions. The results could differ from the /wp/v2/search route as it could include a full list of facets and results in the same response.

We could also do both options.

I'll look into building a PR for this but wanted to see if this was already on the roadmap.

@danielbachhuber
Copy link
Contributor

Hey @kshaner,

Thanks for the suggestion :) Like I mentioned to @MikeNGarrett, we're not really embarking upon new feature development for Solr Power at the moment.

It seems like each of these two scenarios could be built out as a standalone plugin. What do you think about this approach?

@kshaner
Copy link
Contributor Author

kshaner commented Nov 25, 2020

Cleaning out my inbox and realized I never replied to this. That's unfortunate, but understandable.

It does give me pause though to recommend this to any for sites moving forward though, even sites hosted on Pantheon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants