Support » Plugin: Solr for WordPress » [Plugin: Solr for WordPress] Custom search results

  • graemegeorge


    Hi, I have a query on the plugins ability to achieve my issue.

    The problem: I have 3 post search filters, (keyword, category and time published (Category and time published are wp_dropdowns)). Asume they select a choice for all three. e.g. SEARCH: keyword: packaging, category: Food & Drink, published: August 2011.

    I want to display results that match all 3 into a list of results. On each result it will have the usual title, featured image and extract. I also want it to have a footnote ‘This post matched 3 filters: keyword, category and publish date’.

    Then underneath these results I want to show remaining posts that match for any 2 of the filters. ‘This post matched 2 filters: keyword and category’.

    Keyword will be a mandatory field so after 2 filters it will simply display anything that matches the keywords. Simple enough.

    I suppose you could say, the ‘loop’ is collecting everything that matches the keyword but it’s separating the results into how relevant based on the extra parameters and placing the ‘best’ results that match all filters at the very top.

    I hope that makes sense. I’ve been trying several approaches on this and just cannot manage to grasp it.

    My question: Is this something that could be easily (or even difficultly) achieved with solr?


  • The topic ‘[Plugin: Solr for WordPress] Custom search results’ is closed to new replies.