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

Support archive

Keywords:mode="auto" not working as expect!

ngoncom 9 Jul 2019 09:39 problem, complete

Hi Low,

I've searched and read your docs (https://gotolow.com/addons/low-search...) but seem keywords:mode="auto" not working as expect.

{exp:low_search:results
channel="tags"
search:title="{exp:stash:my_title}"
keywords:mode="auto"
url_title="not {segment_2}"
dynamic="no"
parse="inward"
}

Related tags
{title}

{/exp:low_search:results}

My {exp:stash:my_title} have value = "Máy khoan kim loại, gỗ Bosch".

I think entries with these title = máy khoan; máy khoan kim loại, máy khoan bosch... will return, but nothing return.

Thank for your time!

Replies

  1. Low 9 Jul 2019 09:47

    You're mixing up 2 filters.

    The keywords:mode parameter applies to the Keywords filter.
    The search:title parameter applies to the Field Search filter.

    Try using keywords="" instead of search:title=""

  2. ngoncom 9 Jul 2019 10:04

    I've created channel tags collection and run:

     
    {exp:low_search:results
    collection="2"
    keywords="{exp:stash:my_title}"
    keywords:mode="auto"
    url_title="not {segment_2}"
    dynamic="no"
    parse="inward"
    }


    Still nothing return!

    Sorry stupid I am :(

  3. Low 9 Jul 2019 10:05

    Can you enable the Template Debugger and copy/paste its contents here?

  4. ngoncom 9 Jul 2019 10:11

    Here it is

  5. Low 9 Jul 2019 10:13

    And the Templates tab too, please.

  6. ngoncom 9 Jul 2019 10:15

    My template tab:



    P/S: I am using EE 5.2.3 with Low Search 6.2.0

  7. Low 9 Jul 2019 10:18

    As far as I can see, Low Search is working as expected. It searches for the keywords and finds an entry with ID 1074. That is probably negated by the url_title="not ..." parameter, tho.

  8. ngoncom 9 Jul 2019 10:22

    Yes entry ID 1074 is current viewed entry, but I have some other entries with title = máy khoan, khoan bosch... none of them display,

  9. Low 9 Jul 2019 10:24

    Are you sure you don't mean to use keywords:mode="any"? "auto" by default will require all keywords to be present in the index.

    Also, do the entries exist in the same collection and are the fields correctly weighted?

  10. ngoncom 9 Jul 2019 10:29

    Oh my God!

     
    {exp:low_search:results
    collection="2"
    keywords="{exp:stash:my_title}"
    keywords:mode="any"
    url_title="not {segment_2}"
    dynamic="no"
    parse="inward"
    }


    keywords:mode="any" solved my problem!

    Thank you so much for your lession and time, God bless you!