You are here

function search_api_solr_default_index_third_party_settings in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 search_api_solr.module \search_api_solr_default_index_third_party_settings()
  2. 8.2 search_api_solr.module \search_api_solr_default_index_third_party_settings()

Get the default third party settings of an index for Solr.

Return value

array

1 call to search_api_solr_default_index_third_party_settings()
search_api_solr_merge_default_index_third_party_settings in ./search_api_solr.module
Merges the default third party settings to those of an index for Solr.

File

./search_api_solr.module, line 120

Code

function search_api_solr_default_index_third_party_settings() {
  return [
    'finalize' => FALSE,
    'commit_before_finalize' => FALSE,
    'commit_after_finalize' => FALSE,
    'highlighter' => [
      'maxAnalyzedChars' => 51200,
      'fragmenter' => 'gap',
      'usePhraseHighlighter' => TRUE,
      'highlightMultiTerm' => TRUE,
      'preserveMulti' => FALSE,
      'regex' => [
        'slop' => 0.5,
        'pattern' => 'blank',
        'maxAnalyzedChars' => 10000,
      ],
      'highlight' => [
        'mergeContiguous' => FALSE,
        'requireFieldMatch' => FALSE,
        'snippets' => 3,
        'fragsize' => 0,
      ],
    ],
    'mlt' => [
      'mintf' => 1,
      'mindf' => 1,
      'maxdf' => 0,
      'maxdfpct' => 0,
      'minwl' => 0,
      'maxwl' => 0,
      'maxqt' => 100,
      'maxntp' => 2000,
      'boost' => FALSE,
      'interestingTerms' => 'none',
    ],
    'term_modifiers' => [
      'slop' => 3,
      'fuzzy' => 1,
    ],
    'advanced' => [
      'index_prefix' => '',
      'collection' => '',
      'timezone' => '',
    ],
    'multilingual' => [
      'limit_to_content_language' => FALSE,
      'include_language_independent' => TRUE,
    ],
  ];
}