WordPress.org

Forums

Solr for WordPress
Custom Theme Integration? (6 posts)

  1. 4lvin
    Member
    Posted 3 years ago #

    I need to clarify following questions:

    • Will Solr be integrated into WordPress original Search Boxes?
    • Do i need to implement following steps. What are these?
    Custom Theme Integration
    
        Create a new theme file called "s4w_search.php".
        Insert your markup, use template methods s4w_search_form() and s4w_search_results() to insert the search box and results respectively.
        Add result styling to your theme css file, see solr-for-wordpress/template/search.css for an example.
        You can use the search widget in your sidebar for search, or use a custom search box that submits the query in the parameter "s".

    http://wordpress.org/extend/plugins/solr-for-wordpress/

  2. archon810
    Member
    Posted 2 years ago #

    I'm also not sure why the plugin doesn't integrate into regular search results the same way, for example, http://wordpress.org/support/plugin/relevanssi does.

    There's a lot of unnecessary work before the plugin starts working right and doesn't break the search page UI otherwise.

  3. dbejean
    Member
    Posted 2 years ago #

    The plugin can't implement the standard wordpress loop.
    It is why a php template is provided and you need to customize it in order to match your theme look and feel.

  4. archon810
    Member
    Posted 2 years ago #

    @dbejean Why can't it implement the standard loop? This plugin http://wordpress.org/extend/plugins/relevanssi/ - it's a transparent replacement that doesn't require any changes to the current theme (maybe minor ones to add additional formatting). It's really slow though, but it shows that a straight replacement can work just fine and is a lot more user-friendly.

  5. dbejean
    Member
    Posted 2 years ago #

    My understanding of relevanssi is that it modify the mysql query of the standard search in a hook and so it is no necessary to change anything in the search.php script.

    Solr For WordPress have to call an external web service (Solr) and the hook in order to change the mysql query can be used. All id done in replacement of the standard search.php script.

    I am not sure it is clear.

  6. alxvallejo
    Member
    Posted 2 years ago #

    I think one of the trickiest parts is dealing with the facets. It doesn't use a simple wp_list_categories method for displaying them. It uses its own listing function with nested ul's.

    Has anyone had any luck with this?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Solr for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic