I've got quite a large site and the search page of the facet_search that is for the whole content is slow to load - several load_categories() taking 300ms - 1000ms on a test machine. With a reduced set, search started or with a environment for a content type with less nodes the time drops 100 fold.

Now there are other fixes for this; but, a quick fix for this was just to remove the faceted_search_ui_guided_block from the page for that big search. It's confused test users there too.

Would this be useful to others? Is it worth me coding this up as a generalizable option to put onto the search environment settings page?

CommentFileSizeAuthor
#2 faceted_search_ui.module.20080710.patch1.98 KBekes

Comments

David Lesieur’s picture

Yes, I'd accept a patch that make the Guided search optional in the full search page.

ekes’s picture

Version: 5.x-1.0-beta4 » 5.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.98 KB

I believe this is all that is needed - patch attached.

freestylegary@yahoo.com’s picture

Version: 5.x-1.x-dev » 6.x-1.0-beta2

The patch 'faceted_search_ui.module.20080710.patch' worked for me me with a few changes for faceted_search-6.x-1.0-beta2.

Don't know how to write a patch file so posting changes required below... maybe this can be made a standard feature for this module? It's really useful.

In place of-

+    $form['guided']['guided_block_full_page'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Display Guided search block on full search page'),
+      '#default_value' => faceted_search_variable_get($env_id, 'guided_block_full_page', TRUE),
+      '#description' => t('When enabled the guided search block will be displayed on the full search page with the keyword search.'),
+    );

Use-

  $form['guided']['guided_block_full_page'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display Guided search block on full search page'),
      '#default_value' => $env->settings['guided_block_full_page'],
      '#description' => t('When enabled the guided search block will be displayed on the full search page with the keyword search.'),
    );

And in place of-

+  if (faceted_search_variable_get($env_id, 'guided_block_full_page', TRUE)) {
+    $guided_block_content = faceted_search_ui_guided_block($_faceted_search[$env_id]);
+  }
+  else {
+    $guided_block_content = FALSE;
+  }
+

Use-

  if ($env->settings['guided_block_full_page']== TRUE) {
    $guided_block_content = faceted_search_ui_guided_block($env);
  }
  else {
    $guided_block_content = FALSE;
  }