Sorry if I'm missing something but since updating from beta 10 to beta 11 searching using facets only and no keywords no longer works.

When I click a facet I get redirected as usual, the current search block appears, all the facet blocks react accordingly and the retain facets checkbox appears in the search form but I get no results.

If I then add a search keyword it works. Or if I search on a keyword first and then add a facet it also works.

Comments

rooby’s picture

This 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.

nick_vh’s picture

I just tried this and it seems to be working?
Can you try with latest dev version?

nick_vh’s picture

Status: Active » Postponed (maintainer needs more info)
rooby’s picture

Version: 7.x-1.0-beta11 » 7.x-1.x-dev
Status: Postponed (maintainer needs more info) » Active

I 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.

pwolanin’s picture

Can you paste some screen shots with annotation?

rooby’s picture

StatusFileSize
new102.39 KB
new64.89 KB
new85.5 KB

Here 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.

rooby’s picture

Status: Active » Closed (cannot reproduce)

For 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 :)

nick_vh’s picture

Status: Closed (cannot reproduce) » Needs review
StatusFileSize
new1.32 KB

Hmm, I think I actually was able to reproduce. Looking at this, the logic is not 100% correct. Attached patch should iron this bug out

nick_vh’s picture

StatusFileSize
new2.06 KB

This 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.

nick_vh’s picture

Status: Needs review » Fixed

Committed

rooby’s picture

Awesome, that's the kind of code I was expecting to see in the apachesolr_search_search_results() function.
Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

2xIP’s picture

Since 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.