Customizing results

  • pseudo visitor
    Participant
    5 years, 6 months ago #7039

    Accessing Solr results via PHP, and over-riding templates.

    I’ve got your plugin working pretty well and I know I can style live results with CSS, but I’d like to override the Javascript and the PHP for the solr-results page. How can I do that? And can I access an array of Solr results via a PHP function in the results page?

    wpsolr
    Keymaster
    5 years, 6 months ago #7040

    You should use your theme’s search template, instead of WPSOLR’s Ajax search template in screen 2.1 option “Search template”. Your template will receive the posts results as usual, with the standard loop.

    pseudo visitor
    Participant
    5 years, 6 months ago #7041

    Thanks, that works for the search results page.

    What can I do for live search? I’d like to override the Javascript powering the live search to sort results by post type and some more functionalities.

    wpsolr
    Keymaster
    5 years, 6 months ago #7042

    It’s not supported.

    You can eventually use our Yith WooCommerce Ajax Search extension :

    Video – WPSOLR + Yith Woocommerce Ajax Search (free) + Elasticsearch

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.