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

Support archive

GET causing odd search results

Jordan Sowers 24 Nov 2014 09:32 problem, complete

I've seen issues in the documentation about using GET. It seems to be working since I don't have the second exception in .htaccess and my uri_protocol is set to AUTO.

I was able to get shortcuts working with GET, but i'm now experiencing weird results. When I do a search, all my filters are correctly set (If I change a price, it changes on the next result page). It is my entries that are behaving weirdly. The results tag isn't showing the correct entries. I've tried different variation to try and get no results to happen, but nothing. Its acting like its being cached (with cached turned off). I can see that the form tag is understanding the query in the url, but it seems that the results tag isn't understanding it...

Was this the "unexpected results" you meant in your documentation?

Here's my template debug:

(0.436306 / 2.12MB) Low Search: Applying Low_search_filter_ranges
(0.436330 / 2.13MB) Low Search: Getting channel field info from API
(0.440972 / 2.58MB) Low Search: Applying Low_search_filter_keywords
(0.441042 / 2.58MB) Low Search: No keyword search
(0.441336 / 2.59MB) Low Search: Setting entry_id param
(0.441539 / 2.59MB) Low Search: Parameters set: query="results" channel="listing" status="open" limit="12" paginate="both" disable="category_fields" range-to:price="100" orderby="ad_sc|date" sort="desc" search_mode="all" entry_id="214|175|184|193|213|243"
(0.441547 / 2.59MB) Low Search: Pre-applying search vars to tagdata
(0.447775 / 2.59MB) Low Search: Calling the channel module

THANKS

Replies

  1. Low 24 Nov 2014 09:41

    So you're getting no_results? If so, are you sure the entries have status Open, or aren't expired or future entries? Native filters could be in play here.

  2. Jordan Sowers 24 Nov 2014 15:51

    I'm getting results, but its acting weird. Before when I was encoding everything was fine, but now when I search for a max price of $500, items at $1500 come in.

    Here is my results tag:

    {exp:low_search:results channel="listing" status="open" limit="12" paginate="both" disable="category_fields"}

  3. Low 24 Nov 2014 15:54

    What is the 'Field Content' settings of the range-field? Is it set to anything 

  4. Jordan Sowers 24 Nov 2014 16:06

    So here are my settings:

    in template:

    admin:



    Another thing to note is that its all searches. So it could be price, or it could be a category. These both worked fine when things were encoded.

    Thanks!

  5. Low 24 Nov 2014 16:08

    I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.

  6. Low 24 Nov 2014 18:43

    For visibility: it had to do with "Cache Dynamic Channel Queries?" setting being on Yes, in combination with the Results tag being the same with GET vars, which therefore was being cached.

    There are 2 current solutions: turn that caching off (under Global Channel Preferences) or add a random parameter to the Results tag (like random="{current_time}") to force EE to break out of the cache.