You are here

function search_api_solr_default_index_third_party_settings in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 search_api_solr.module \search_api_solr_default_index_third_party_settings()
  2. 4.x 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

4 calls to search_api_solr_default_index_third_party_settings()
SearchApiSolrBackend::finalizeIndex in src/Plugin/search_api/backend/SearchApiSolrBackend.php
SearchApiSolrBackend::getIndexId in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Prefixes an index ID as configured.
SearchApiSolrBackend::setHighlighting in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Sets the highlighting parameters.
search_api_solr_form_search_api_index_form_alter in ./search_api_solr.module
Implements hook_form_FORM_alter.

File

./search_api_solr.module, line 101

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,
      ],
    ],
    'advanced' => [
      'index_prefix' => '',
    ],
  ];
}