Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I would like to allow visitors to a site to search for posts based on various attributes (categories, tags, custom fields).

I have tried using Solr, but this doesn't appear to work.

I tried using the MySolrServer plugins for a local instance of Solr and a hosted instance, but the plugin doesn't appear to work.

I also tried using Solr for Wordpress, but the plugin wouldn't enable.

I don't want to use something like Taxonomy Drill-down.

Bearing those points in mind, how can I now try to implement true faceted search that will enable site visitors to search for posts based on attributes?

share|improve this question
What "various attributes" are you talking about? Tags? Categories? Custom fields? – songdogtech Sep 25 '12 at 2:03
Pretty much - I've updated the question to clarify. – James Sep 25 '12 at 10:02
What about Relevanssi wordpress.org/extend/plugins/relevanssi According to their key features, Search comments, tags, categories and custom fields.. It also provides more relevant results. – Christine Cooper Apr 21 at 19:41
Thanks, Christine. I've had a quick look and it doesn't appear to provide a facility of faceted search - just enhanced search across various elements of data. – James Apr 21 at 23:19

1 Answer

Why not use the standard WP-Query object? It has properties to set category, tag, author, contained string. Custom taxonomies and fields are also supported.

share|improve this answer
What is WP-Query? – James Sep 25 '12 at 15:39
WP-Query is the most fundamental object in Wordpress. It allows you to search for everything via many parameters. I cant see why you look into external tools like Solr without first researching what WP offers. Take a look here. gist.github.com/2023628 – p.a. Sep 26 '12 at 4:20
WP-Query would appear to be something a developer would be familiar with. I'm not a developer, hence why I looked at Solr, which doesn't require a development skillset to implement. – James Sep 26 '12 at 9:06
Solr, as any external tool, needs considerable effort to integrate. Evaluating the in-built tools of the selected evironment is always my first choice before further experimentations. Maybe hire a specialist to utilise your existing tools before trying external solutions. – p.a. Sep 26 '12 at 9:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.