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

Support archive

Searching Title with Number

jwmatlock 19 Aug 2016 15:52 problem, rejected

The number may not be the issue, but I have an article called "10 things every parent should know about gaming". If I do a search for "10 Things", I get no search results. If I searching "gaming" this article pulls up in the results. Any ideas?

Replies

  1. Low 21 Aug 2016 07:24

    Can depend on various things.

    What are your PHP, EE and LS versions?
    What are your LS settings?
    What is the code for your Form tag as well as the opening Results tag? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.

  2. jwmatlock 22 Aug 2016 16:30

    Using PHP 7, EE 3.3, and LS 5.0.3.

    Settings:
    Encode query: yes
    Filters: All are currently selected
    Minimum word length: 4
    Stop or Ignore words list doesn't contain 10 or Things.

    Search form:

    {exp:low_search:form search_mode="all" loose_ends="right" form_id="search" result_page="search" form_class="inner"}
    <input type="text" name="keywords" placeholder="Search" class="input input-biger">
    <button type="submit" class="button hollow button-search"><i class="fa fa-search xs-size"></i></button>
    {/exp:low_search:form}

    Results tag:

    {exp:low_search:results query="{segment_2}" channel="blog" limit="6" show_expired="no" paginate="inline"}


    Appreciate the help!

  3. Low 22 Aug 2016 16:40

    search_mode="all" loose_ends="right" shouldn't be on the Form tag, but on the Results tag. Otherwise, this should work.

    Can you enable the template debugger and look up all lines that mention Low Search, as well as any SQL queries that query the exp_low_search_indexes tables? What does that say?

  4. jwmatlock 23 Aug 2016 01:20

    Shaking my head in shame. I didn't have the channel set correctly on the results page. All works as expected!