orderby="low_search_collection" results differ based on user being logged in
The following template code orders (correctly) result by collection.
{exp:low_search:results
query="{segment_2}"
keywords:lang="en"
keywords:inflect="yes"
limit="1000"
status="open|archive"
orderby="low_search_collection:product,projects,product_images,resource,material,main"
}
For some reason, I see what I deem the correct ordering if I'm logged in.
If I'm logged out, the results are in the exact opposite order (but otherwise correct)
Url: http://halcon.finland.creativearc.com
Search for "mesa"
Correct ordering should be: https://www.screencast.com/t/v8UF2sF4
Other users see: https://www.screencast.com/t/nxcTW15v5sI
(Please disregard the red low_search_score - that has been removed since the screenshot)
Replies
Low 20 Mar 2017 15:10
What are your EE and LS versions?
Can you share the output of the template debugger for both cases?
Low 20 Mar 2017 15:15
Oh. You might wanna try the search again and disable JavaScript in the browser. Looks like the order is correct when the page loads, but then gets garbled later. Turning off JS keeps it in the right order for me.
Paul Larson 20 Mar 2017 15:18
Ack! Sorry.
EE 2.11.1 - Build Date: 20160318
Low Search: 4.4.5
===
Template debugging for incorrect result, below. (note, I'm having trouble making the proper ordering occur @ the moment. Maybe I just need an extra param to force LowSearch to sort by collection first, search_score second?
===
(0.042833 / 7.88MB) Tag: {exp:low_search:form result_page="/search/" required="keywords"}
(0.042914 / 7.88MB) Closing Tag Found
(0.043000 / 7.88MB) Tag: {exp:low_search:param get="keywords" query="eyJyZXN1bHRfcGFnZSI6Ilwvc2VhcmNoXC8iLCJrZXl3b3JkcyI6Im1lc2EifQ"}
(0.043059 / 7.88MB) No Closing Tag
(0.043112 / 7.89MB) Tag: {exp:low_search:results query="eyJyZXN1bHRfcGFnZSI6Ilwvc2VhcmNoXC8iLCJrZXl3b3JkcyI6Im1lc2EifQ" keywords:lang="en" keywords:inflect="yes" limit="1000" status="open|archive" orderby="low_search_collection:product,projects,product_images,resource,material,main" }
(0.043198 / 7.89MB) Closing Tag Found
(0.043274 / 7.89MB) Processing Tags
(0.043307 / 7.89MB) Module Tag: Low_search/form
(0.043323 / 7.89MB) Module Tag: Low_search/param
(0.043338 / 7.89MB) Module Tag: Low_search/results
(0.043353 / 7.89MB) Including Files for Plugins and Modules
(0.048216 / 8.16MB) Files for Plugins and Modules All Included
(0.048696 / 8.17MB) Beginning Final Tag Data Processing
(0.048716 / 8.17MB) Calling Class/Method: Low_search/form
(0.048835 / 8.18MB) -> Class Called: Low_search
(0.059423 / 8.62MB) -> Method Called: form
(0.063285 / 8.77MB) -> Data Returned
(0.063331 / 8.77MB) Calling Class/Method: Low_search/param
(0.063419 / 8.77MB) -> Class Called: Low_search
(0.063964 / 8.77MB) -> Method Called: param
(0.064148 / 8.77MB) -> Data Returned
(0.064171 / 8.77MB) Calling Class/Method: Low_search/results
(0.065195 / 8.78MB) -> Class Called: Low_search
(0.065694 / 8.78MB) -> Method Called: results
(0.093988 / 9.34MB) Low Search: Applying Low_search_filter_keywords
(0.096968 / 9.45MB) Low Search: Extending keywords with inflections
(0.099449 / 9.45MB) Low Search: Keywords: mesa mesas
(0.099674 / 9.45MB) Low Search: Starting search (fulltext)
(0.100793 / 9.52MB) Low Search: Applying collection modifier to search results
(0.100990 / 9.54MB) Low Search: Ordering results by collection order
(0.101433 / 9.54MB) Low Search: Returning entry IDs
(0.101526 / 9.52MB) Low Search: Setting fixed_order param
(0.101773 / 9.52MB) Low Search: Parameters set: query="eyJyZXN1bHRfcGFnZSI6Ilwvc2VhcmNoXC8iLCJrZXl3b3JkcyI6Im1lc2EifQ" keywords:lang="en" keywords:inflect="yes" limit="1000" status="open|archive" orderby="low_search_collection:product,projects,product_images,resource,material,main" result_page="/search/" keywords="mesa" fixed_order="327|150|350|176|354|383|147|365|381|353|5360|5353|5346|5354|5349|5348|5361|5358|5343|5357|5350|5351|5362|5356|5347|5345|5359|5344|5352|5355|48|84|50|51|47|49|83|331|330|379"
(0.101784 / 9.52MB) Low Search: Pre-applying search vars to tagdata
(0.113669 / 9.53MB) Low Search: Calling the channel module
(0.182725 / 14.56MB) Calling Extension Class/Method: Assets_ext/channel_entries_query_result
(0.184853 / 14.75MB) Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
Paul Larson 20 Mar 2017 15:53
Ugh.
It was isotope grid/jquery.
Not low. sorry for trouble!