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

Support archive

Is the query attribute required on the results tag?

Chris 13 Sep 2012 09:36 question, complete

{exp:low_search:results keywords="fred" log_search="yes"}

has no results even though I know there is a record with "fred" in its title

I've added a blank query, a collection etc...

if I add a dummy query and nothing else, it brings back all results.

I don't want to have a query in the address bar.

Replies

  1. Low 13 Sep 2012 09:43

    Hi Chris,

    If no query="" param is given, it should behave like the regular channel:entries tag. What version of Low Search are you on?

    Can you turn on template debugging and look for the lines starting with Low Search and paste them here?

  2. Chris 13 Sep 2012 09:53

    Hey Low,

    I've just purchased it yesterday so v2.1.0

    (0.189970 / 12.45MB) Calling Class/Method: Low_search/results
    (0.190248 / 12.46MB) -> Class Called: Low_search
    (0.190865 / 12.46MB) -> Method Called: results
    (0.190907 / 12.46MB) Low Search: setting hard-coded keywords parameter
    (0.190927 / 12.46MB) Low Search: setting hard-coded search_mode parameter
    (0.190945 / 12.46MB) Low Search: setting hard-coded collection parameter
    (0.203033 / 12.55MB) Low Search: starting search (fulltext)
    (0.203579 / 12.55MB) Low Search: Searched but found nothing. Returning no results.
    (0.203606 / 12.55MB) Returning No Results Content
    (0.203763 / 12.49MB) -> Data Returned
    (0.203898 / 12.45MB) Parsing Tags in Template

    I do have several of your other add-ons on my installation. low_replace is used on that page also

  3. Chris 13 Sep 2012 09:58

    in fact... I've played with it since... here's the one I posted before

    {exp:low_search:results keywords="Fred"}

    (0.187168 / 12.45MB) Calling Class/Method: Low_search/results
    (0.187449 / 12.46MB) -> Class Called: Low_search
    (0.188108 / 12.46MB) -> Method Called: results
    (0.188151 / 12.46MB) Low Search: setting hard-coded keywords parameter
    (0.199613 / 12.54MB) Low Search: starting search (fulltext)
    (0.200100 / 12.54MB) Low Search: Searched but found nothing. Returning no results.
    (0.200128 / 12.54MB) Returning No Results Content
    (0.200288 / 12.49MB) -> Data Returned
    (0.200422 / 12.45MB) Parsing Tags in Template

    {exp:low_search:results keywords="Fred" collection="news"}

    (0.185609 / 12.45MB) Calling Class/Method: Low_search/results
    (0.185889 / 12.45MB) -> Class Called: Low_search
    (0.186548 / 12.46MB) -> Method Called: results
    (0.186591 / 12.46MB) Low Search: setting hard-coded keywords parameter
    (0.198162 / 12.54MB) Low Search: starting search (fulltext)
    (0.198637 / 12.54MB) Low Search: Searched but found nothing. Returning no results.
    (0.198663 / 12.54MB) Returning No Results Content
    (0.198820 / 12.49MB) -> Data Returned
    (0.198953 / 12.45MB) Parsing Tags in Template

  4. Low 13 Sep 2012 10:00

    Looks like it's not finding the keywords in the search index. Have you built the collection index? Are there fields with weight > 0 in that collection that have the given keywords in it?

  5. Chris 13 Sep 2012 10:04

    Thank you... I had built the index, but hadn't increased the weight of the titles.

    In fact... After I look at it, most of the add-ons on the site I'm working on are yours.. :)

  6. Low 13 Sep 2012 10:05

    :) Good to hear!