You are here

function fuzzysearch_get_excerpt_options in Fuzzy Search 7

Fuzzy search get excerpt options.

1 call to fuzzysearch_get_excerpt_options()
fuzzysearch_build_excerpt in ./fuzzysearch.module
Fuzzysearch build excerpt.

File

./fuzzysearch.module, line 207
Fuzzysearch module.

Code

function fuzzysearch_get_excerpt_options($index) {
  return array(
    'debug_score' => $index->options['processors']['fuzzysearch_excerpt']['settings']['debug_score'],
    'excerpt_length' => $index->options['processors']['fuzzysearch_excerpt']['settings']['excerpt_length'],
    'max_result_length' => $index->options['processors']['fuzzysearch_excerpt']['settings']['max_result_length'],
    'spelling' => $index->options['processors']['fuzzysearch_excerpt']['settings']['spelling'],
  );
}