We no longer have Node search enabled under Drupal search settings -- just ApacheSOLR and Users. When a page not found occurs, the search404 page displays the message, "The page you requested does not exist. For your convenience, a search was performed using the query XXXXX."
However, there are no search results or search field. Just a white page. This happens no matter what the term, even when there are definitely results for the term.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | no-form-no-results-solr-1546370-4.patch | 1.7 KB | victoriachan |
| #1 | no-form-no-results-solr-1546370.patch | 1.22 KB | marktfrey |
Comments
Comment #1
marktfrey commentedThis includes the no-results patch from http://drupal.org/node/1467982, as well as switching search_form's 'module' arg to the $type_search rather than 'node'. Working for me with apachesolr 7.x-1.0-beta19.
Comment #2
somatics commentedThat's great. Thanks! I will try this tonight or this weekend and report back whether or not it works.
Is this patch going to be rolled into a dev release of the module?
Comment #3
victoriachan commentedThanks for the patch.
I have tried it, and it is showing the search results now after applying the patch. However, when I then subsequently submit the search form on the search404 page, I get directed to the solr search results page with no search key and hence no search results. It seems the search key has not been sent to the search page though it is appearing in the search input box before I submit it.
Is anyone else having this problem?
Cheers,
Victoria
Comment #4
victoriachan commentedI have tweaked the patch to fix the issue I have mentioned in my comment above.
Here's the updated patch, including the changes by marktfrey and some that I have added. This works for me using Apachesolr 7.x-1.0-beta19
The changes I have made is stated below. It isn't as elegant as I would like. But because of the way that the apachesolr module is, there doesn't seem to be a more straightforward way to get the search form. If anyone knows of a better way, do tell.
Thanks.
Comment #5
zyxware commented@marktfrey, @victoriachan - Thanks for the patches. I have applied this in the 7.x-1.x branch. Please check it out.