Super Search Version 2.1.4, Expression Engine Version 2.8.1

Right now Super Search is running what I would call an "exclusive search".

That is, if I search for "dogs and cats", I will only return entries that contain in searchable fields the words "dogs", "and", AND "cats". It will not return results for entries that just the terms have "dogs" AND "cats" but not "and", nor will it return results for entries that only contain the terms "dogs" AND "and".

Is it possible to make Super Search inclusive, so that if I search for "dogs and cats", I will return results for entries that contain "dogs" OR contain "cats" OR contain both "dogs" AND "cats".

If I can set up Super search this way, can I prioritize results that contain more of the search terms. In the above example, could I make entries that have both "dogs" AND "cats" appear higher than results that only have "dogs" OR "cats"?

EDIT: Here is the {exp:super_search:results} portion of our search template.


        {if super_search_no_results}
            <div class="col-md-12">
                <p>No results matched your query.</p>

        {if super_search_total_results==1}

        {if count == 1 OR count == 4 OR count == 7 OR count == 10}

        <div class="ad-col m-bottom">
            <div class="row ">

                <div class="col-md-4 ad-small">
                    <div class="well bg-1 ad-col-height">
                        <h4><a class="inherit-hyperlink" href="{url_title_path=product}">{title}</a></h4>
                        <div class="row m-top">
                            <div class="col-md-4">
                                <a href="{url_title_path=product}"><img class="img-responsive" src="{if product_thumbnail}{product_thumbnail}{if:else}/media/products/noi.jpg{/if}" alt="{title}"></a>
                            <div class="col-md-8">
                                {if product_tag!="" AND product_tag != "None"}
                                    <p class="{product_tag}">{product_tag:label}</p>
                                {if product_author}<p><small>By {product_author}</small></p>{/if}
                                <p>Product Code: {product_sku}
                                <br />Price: {exp:store:product entry_id="{entry_id}" disable_form="yes" disable_javascript="yes"}{price}{/exp:store:product}
                                <br />{if product_binding != "Other"}{product_binding}{/if}</p>
                                <p><a href="{url_title_path=product}" class="btn btn-default">View Details</a></p>
                        </div><!-- /.row -->
                        <div class="row">
                            <div class="col-md-12 m-top">
                    </div><!-- /.well -->
                </div><!-- /.ad-small -->

        {if count == 3 OR count == 6 OR count == 9 OR count == 12 OR count == total_results}
            </div><!-- /row -->


        <div class="text-center">
        <ul class="pagination">
        <li><a href="{pagination_url}" class="page-first">&laquo;</a></li>

        <li><a href="{pagination_url}" class="page-previous">&lt;</a></li>

        <li {if current_page}class="active"{/if}><a href="{pagination_url}" class="page-{pagination_page_number} ">{pagination_page_number}</a></li>

        <li><a href="{pagination_url}" class="page-next">&gt;</a></li>

        <li><a href="{pagination_url}" class="page-last">&raquo;</a></li>


  • What version of Super Search are you using? Can you show your template case, at least the parameters that you are using? You could also put "and" in Super Search's "Ignore Wordlist" (CP) to ignore it. Also, this doc page on relevance ordering is a good read: solspace.com/docs/super_search/relevance_ordering
    – Solspace
    Nov 26 '14 at 13:28
  • I'm running Super Search Version 2.1.4 and ExpressionEngine Version 2.8.1 right now. The word "and" exists by default in the Ignore Wordlist, but I was just experimenting, and it doesn't seem to be working. I added the {exp:super_search:results} code so you can see what I haave so far.
    – B Mack
    Nov 26 '14 at 15:07
  • Here's an actual great example of this from out website: The search "2012 international plumbing code book" returns zero results, even though we have a product entry named "2012 ICC International Plumbing Code (IPC), Loose Leaf". How can I have that product appear for that search query? I feel like if I could make Super Search an inclusive search, it would fix much of that issue.
    – B Mack
    Nov 26 '14 at 21:59
  • So "2012 ICC International Plumbing Code (IPC), Loose Leaf" is the entry title, or in a specific custom field part of your list title|product_display_title|product_author|product_sku|product_isbn? Did you also set those fields as searchable? Also, inclusive_keywords="" is set to yes by default. Perhaps try no (based on the "dogs and cats" search)?
    – Solspace
    Nov 27 '14 at 12:45
  • "2012 ICC International Plumbing Code (IPC), Loose Leaf" is both the "title" and the "product_display_title" on that list of searchable fields, so it is searchable.
    – B Mack
    Nov 28 '14 at 21:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.