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

Support archive

There is something wrong with keyword search is a number

ngoncom 10 Apr 2018 19:03 question, complete

Hi Low,

I have a simple channel with:
- Title is number and allow to search
- Other custom field NOT allow to search

I have 3 entries to test:
- Entry 1
Title is 2222 33333 4444
- Entry 2
Title is 1111 33333 6789
- Entry 3
Title is 4522 33086 6328

I have a simple form search:

{exp:low_search:form result_page="search" form_class="search-form"} 
<input type="text" name="keywords" value="" />
<button type="submit">Search</button>
{/exp:low_search:form}


And a result page:
{exp:low_search:results 
channel="card"
query="{segment_2}"
keywords:mode="exact"
status="not closed"
dynamic="no"
}

<p>{title}</p>

{/exp:low_search:results}


Here is testing results:
- With keyword is "4444" the results is all 3 entries return?! (expect only Entry 1 return)
- With keyword is "4" the results is all 3 entries return?! (expect only Entry 1 + Entry 3 return)

I don't know why!

P/S: I rebuilt index search multi time during test.

Replies

  1. Low 11 Apr 2018 06:56

    Can't replicate. What version of EE and LS are you using?

  2. ngoncom 11 Apr 2018 09:10

    Hi Low,

    I tested on localhost with:
    - EE version 2.10.3
    - Low Search version 4.4.2

    Thank so much!

    P/S: I've read this:
    - 4.4.3 2016-02-23 Fixed a bug in the Keywords filter where numeric search terms were ignored

    But I downloaded low_search_v500.zip it still 4.4.2, do you think this is problem?

  3. Low 11 Apr 2018 13:20

    Yeah, you need the latest from the v4 branch, v4.4.5, which is listed on devot:ee under "Low Search Legacy Version Downloads".

  4. ngoncom 11 Apr 2018 14:00

    Oh Yeah!

    I've re-downloaded 4.4.5 legacy on Devot:ee and tested, it works perfectly!

    Thank so much for your time, Mr Low!