We need "Behavior on empty search" settings for each page defined by a user.

Attached is a patch that implements it. I'm attaching it now as I'm probably done for the day.

But, to be complete, we'd also need settings for "Results per page" (apachesolr_rows), "On Failure" (apachesolr_failure) and 'Enable spellchecker and suggestions' (apachesolr_search_spellcheck).

Comments

pwolanin’s picture

Title: Add additional settings to user defined search pages » Add additional settings to user defined search pages, and validate env_id
Status: Active » Needs review
StatusFileSize
new11.09 KB

Applied the above patch and tried to factor out some of the code duplication.

Also had work-in-progress to validate the environment ID, as necessary for future support for ctools export/import.

pwolanin’s picture

StatusFileSize
new11.11 KB

That didn't work for the page - this is better.

pwolanin’s picture

committed - but need to also add the "retain filters" functionality ideally.

pwolanin’s picture

Status: Needs review » Fixed
pwolanin’s picture

StatusFileSize
new2.67 KB

committed this follow-up too.

Status: Fixed » Closed (fixed)

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