You are here

function apachesolr_search_mlt_block_defaults in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr_search.admin.inc \apachesolr_search_mlt_block_defaults()
  2. 7 apachesolr_search.admin.inc \apachesolr_search_mlt_block_defaults()

Merge supplied settings with the standard defaults..

3 calls to apachesolr_search_mlt_block_defaults()
apachesolr_search_mlt_block_form in ./apachesolr_search.admin.inc
Form to edit moreLikeThis block settings.
apachesolr_search_mlt_save_block in ./apachesolr_search.admin.inc
A helper function to save MLT block data.
DrupalApacheSolrNodeAccess::testIndexing in apachesolr_access/tests/apachesolr_access.test

File

./apachesolr_search.admin.inc, line 995
Administrative settings for searching.

Code

function apachesolr_search_mlt_block_defaults($block = array()) {
  return $block + array(
    'name' => '',
    'num_results' => '5',
    'mlt_fl' => array(
      'label' => 'label',
      'taxonomy_names' => 'taxonomy_names',
    ),
    'mlt_env_id' => 'solr',
    'mlt_mintf' => '1',
    'mlt_mindf' => '1',
    'mlt_minwl' => '3',
    'mlt_maxwl' => '15',
    'mlt_maxqt' => '20',
    'mlt_type_filters' => array(),
    'mlt_custom_filters' => '',
  );
}