All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Your search term included common words that are not allowed to be searched

electriclabs 29 May 2012 11:28 problem, rejected

Hi Low,

Sorry for what may be a noobish confused ticket, but we're having some issues with our journal search. This is what the interface looks like:

http://grab.by/dRgo

By default 'all words in any order' is selected when you get to the search. If you try and query a journal title such as 'women and gambling' with either 'all' or 'any' search types, you get the error 'Your search term included common words that are not allowed to be searched' because the word 'and' is there. But this is technically a valid search as there is an article named 'women and gambling'.

Do you have any ideas on how we can fix this? Should we just delete all the stop words from the config?

Any help you can provide would be massively appreciated,

Cheers,

Rob

Replies

  1. Low 29 May 2012 11:58

    Hi Rob,

    Low Search doesn't use that error message, but the native search does.

    What does your search form tag look like?

  2. electriclabs 29 May 2012 12:11

    That's interesting, it might be an issue with another plugin then. My search tag looks like this:

     
    {exp:low_search:form collection="cat_entry" query="{last_segment}" search_mode="all" result_page="/browse/search/results/" form_id="adv_search_form" form_class="group"}
    <ul>
    <li>
    <label for="keywords"><strong>Search for:</strong></label>
    <input type="text" name="keywords" id="keywords" placeholder="Enter keywords" value="{keywords}" />
    </li>
    <li>
    <label for="select_within"><strong>Within:</strong></label>
    <select name="select_within" id="select_within">
    <option value="all">All</option>
    <option value="cat_title"{if '{low_search_select_within}' == 'cat_title'} selected="selected"{/if}>Titles</option>
    <option value="cat_author"{if '{low_search_select_within}' == 'cat_author'} selected="selected"{/if}>Author</option>
    <option value="cat_abstract"{if '{low_search_select_within}' == 'cat_abstract'} selected="selected"{/if}>Abstract</option>
    </select>
    </li>
    <li class="radio_array">
    <input type="radio" name="search_mode" id="r_all_words" value="all"{if search_mode == 'all' OR segment_3 == ''} checked="checked"{/if}><label for="r_all_words" class="radio">All words in any order</label>
    <input type="radio" name="search_mode" id="r_exact_match" value="exact"{if search_mode == 'exact'} checked="checked"{/if}><label for="r_exact_match" class="radio">Exact match</label>
    <input type="radio" name="search_mode" id="r_one_or_more" value="any"{if search_mode == 'any'} checked="checked"{/if}><label for="r_one_or_more" class="radio">One or more of these words</label>
    </li>
    </ul>
    <button type="submit" class="button">Search</button>
    {/exp:low_search:form}


    I will investigate the other plugin now as well.

    Thanks for your help, see you at EECI! :)

  3. electriclabs 29 May 2012 12:15

    Hi Low,

    Really sorry to bother you, I've found the culprit, it was a different plugin we were using to search categories. Please close/ignore this!

    Thanks again for your help,

    Rob

  4. Low 29 May 2012 13:31

    No worries, mate. :)