Custom Queries from wpsolr Pro
- prakashreddy.imduriParticipant2 years, 4 months ago #30188
We would like to know is there any way to build custom queries to get data from solr server using wpsolr pro plugin. Could you help us on that.
Note: Requirement is like to show the related articles in every single page.
wpsolrKeymaster2 years, 4 months ago #30191WPSOLR cannot currently manage “More like this” queries, because it can only replace the main query from the archives.
And WPSOLR has no public API neither (difficult to build a common API wrapping Elasticsearch, OpenSearch, Solr, Algolia, Weaviate): using the current WPSOLR internal code to build something custom would be risky to be broken in later releases.
You can of course build something outside of WPSOLR, like calling the JSON Solr More like this API, and let WPSOLR manage the heavy stuff (indexing for instance). This looks the best way on the short term.
prakashreddy.imduriParticipant2 years, 4 months ago #30194Thanks for the Response. Can we get a sample API to get data like sample request and response.
prakashreddy.imduriParticipant2 years, 4 months ago #30198Is that Possible to include the wpsolr pro plugin files into the child theme template?
wpsolrKeymaster2 years, 4 months ago #30212This News could interest you: https://www.wpsolr.com/content-recommendations-coming-with-wpsolr-22-4/
You must be logged in to reply to this topic.