Closed (fixed)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2011 at 22:59 UTC
Updated:
17 Sep 2012 at 14:58 UTC
Jump to comment: Most recent file
Comments
Comment #1
rooby commentedThis only happens when I have my empty search set to "Show enabled filters' blocks under the search box" or "Show enabled filters' blocks in their configured regions".
If I use "Show enabled filters' blocks in their configured regions and first page of all available results" it works.
Comment #2
nick_vhI just tried this and it seems to be working?
Can you try with latest dev version?
Comment #3
nick_vhComment #4
rooby commentedI have tried with the latest devs of the apachesolr and facetapi modules and I still get the same outcome.
There is a query being run, because all the facets etc. are responding to it, but there are no results.
My understanging of the working of the module aren't up to scratch yet (so please excuse any naivety) but in apachesolr_search_search_results() if $keys is empty you can never get to the call to apachesolr_search_run() and without hitting that function you never get to apachesolr_search_process_response().
So there is a query being run in apachesolr_search_run_empty() but the response is never processed (or so it seems).
What throws me off is that it works for you and apparently everyone else.
Comment #5
pwolanin commentedCan you paste some screen shots with annotation?
Comment #6
rooby commentedHere are some screen shots.
Excuse the unfinished theme, it's still in early dev phase.
I can do code debugging too if you know where to look.
Comment #7
rooby commentedFor this project I am now moving to the search_api module (due to additional requirements such as other entity searching and saved searches and such - not because of this issue).
So seeing as no one else is having this problem and you can't reproduce it I will close as cannot reproduce.
If anyone else has the same issue they can re-open this issue.
[edit] Thanks for your responsiveness though, even though it still remains a mystery :)
Comment #8
nick_vhHmm, I think I actually was able to reproduce. Looking at this, the logic is not 100% correct. Attached patch should iron this bug out
Comment #9
nick_vhThis should also fix a problem that certain blocks appear on an empty search, while the custom parameter was set to only show a certain search set.
Comment #10
nick_vhCommitted
Comment #11
rooby commentedAwesome, that's the kind of code I was expecting to see in the apachesolr_search_search_results() function.
Thanks.
Comment #13
2xIP commentedSince updating from beta19 to a rc version the same phenomenon shows itself with me. No output of results if the filter is clicked. Just how it the Screenshots point. With the beta19 version the results are shown. From version rc1 no more.