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

Support archive

Keyword search mode 'all' and searching numbers...

Paul Cripps 8 Apr 2016 15:25 problem, active

We has a website that lists 'courses', in most cases the level it in the entries title, for example:

* Entry title level 1
* Entry title level 2
* Entry title level 3

Then we have the search field:


{exp:low_search:form
status="not closed"
show_expired="yes"
show_future_entries="yes"
result_page="/search"
remember="search:keywords|category|related_location|orderby|sort"
}
<li class="search_wrapper form-group {if low_search_keywords_missing}has-error{/if}">
<div class="label__keywords"></div>
<input type="search" name="keywords" id="keywords" class="search-input" maxlength="100">
<input type="submit" style="display:none"/>
</li>
{/exp:low_search:form}


Which links to our results page, with a query such as : example.com/search?keywords=level-2


{exp:low_search:results
query="{segment_1}"
require_query="yes"
keywords:loose="both"
keywords:mode="all"
collection="training|channel_1|
}


The problem we are having is searching "level 2" and entry with "level 3" in the title is always returned first.

Replies

  1. Low 8 Apr 2016 15:28

    Can you make sure you're on the latest version (5.0.2 for EE3, 4.4.3 for EE2)? There was a bugfix recently concerning numeric search terms.

  2. Paul Cripps 8 Apr 2016 15:45

    4.4.3 for EE2 just updated.

    Still the same. I'll email you login creds.

  3. Paul Cripps 8 Apr 2016 20:42

    Hmm, ok upgrading locally no difference as mentioned.

    On the server we've updated to 4.4.3 as well.

    No change with out search results, so we rebuilt the index.

    When we rebuild the index's on the server all of the numeric references are stripped form the exp_low_search_indexes index_text fields.

    Rebuilding index locally its fine.

    We didn't have this issue on 4.4.2.

  4. Paul Cripps 8 Apr 2016 21:10

    Emailed regarding index issues.