WPIntell

Source evidence

[Plugin: Solr for WordPress] Custom Theme Integration?

Solr for WordPress · support · 2012-07-19T11:57:00+00:00

complaintsentiment
mediumseverity
0.92relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 22 rows with source links

13.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
4lvin unresolved
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/ 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. 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. @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. 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. 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?

Comments

5 shown
archon810 2012-10-07T21:00:00+00:00

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.

dbejean 2012-11-01T00:01:00+00:00

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.

archon810 2012-11-01T03:35:00+00:00

@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.

dbejean 2012-11-01T08:08:00+00:00

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.

alxvallejo 2012-11-01T20:20:00+00:00

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?