Closed (fixed)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2011 at 06:36 UTC
Updated:
1 Dec 2011 at 05:22 UTC
#1017836: D7 branch: fix empty search behavior was fixed a while ago but it seems to have regressed.
I cannot get the "Show enabled filters' blocks in their configured regions" to work.
Whenever I have no search terms I get all content listed.
For the option to work it expects the $conditions variable to be empty and it never is.
This patch fixes it for me but I haven't had a chance to check for implications on anything else so for all I know it is a terrible solution.
| Comment | File | Size | Author |
|---|---|---|---|
| apachesolr-empty_search.patch | 1.16 KB | rooby |
Comments
Comment #1
nick_vhHmmm,
We should identify the root of these problems first. Are you having this with a clean install of apachesolr and facetapi? Can you tell us what the condition of your site is? Before fixing something like this we really need to know why it is causing this
Comment #2
rooby commentedIt isn't just a clean install with apachesolr and facetapi but the site has only recently started production and it is still pretty bare bones aside from some a few field related modules, entityapi, media and a couple of modules like path auto and global redirect.
The site's modules are up to date except for a couple, which will be updated shortly.
Drupal 7.8
Apachesolr 7.x-1.0-beta10
Facetapi 7.x-1.0-beta7
Apachesolr attachments 7.x-1.0
I can try it out on a bare bones site shortly and see if it still happens.
Here is some information on othe setup:
Default searchers (in this the $searcher->settings variable is what is in my $conditions variable when I have an empty search page - seems like this would never be empty).
Apachesolr environment
Let me know if there is anything else specifically that would help in identifying it.
I can give you a debug_backtrace() or something if it would be helpful.
Comment #3
nick_vhGoing to postpone this until #1314406: De-duplication of the apachesolr_search_execute and apachesolr_search_user_defined_search_page is committed. It could solve your problems or not, please verify?
Thanks
Comment #4
pwolanin commentedComment #5
pwolanin commentedloosk like Nick fixed it in: #1343646: Empty Search behavior is not working
Comment #7
rooby commentedYep, I have just got back to this and it appears to be working correctly now.