You are here

search_api_solr.standard_highlighter.yml in Search API Solr 8

config/install/search_api_solr.standard_highlighter.yml

File

config/install/search_api_solr.standard_highlighter.yml
View source
  1. # Specifies the number of characters into a document that Solr should look for
  2. # suitable snippets.
  3. maxAnalyzedChars: 51200
  4. # Specifies a text snippet generator for highlighted text. The standard
  5. # fragmenter is gap, which creates fixed-sized fragments with gaps for
  6. # multi-valued fields. Another option is regex, which tries to create fragments
  7. # that resemble a specified regular expression. This parameter accepts per-field
  8. # overrides.
  9. fragmenter: gap
  10. # If set to true, Solr will highlight phrase queries (and other advanced
  11. # position-sensitive queries) accurately. If false, the parts of the phrase will
  12. # be highlighted everywhere instead of only when it forms the given phrase.
  13. usePhraseHighlighter: true
  14. # If set to true, Solr will highlight wildcard queries (and other MultiTermQuery
  15. # subclasses). If false, they won't be highlighted at all.
  16. highlightMultiTerm: true
  17. # If true, multi-valued fields will return all values in the order they were
  18. # saved in the index. If false, only values that match the highlight request
  19. # will be returned.
  20. preserveMulti: false
  21. regex:
  22. # When using the regex fragmenter (hl.fragmenter=regex), this parameter defines
  23. # the factor by which the fragmenter can stray from the ideal fragment size
  24. # (given by hl.fragsize) to accommodate a regular expression. For instance, a
  25. # slop of 0.2 with hl.fragsize=100 should yield fragments between 80 and 120
  26. # characters in length. It is usually good to provide a slightly smaller
  27. # hl.fragsize value when using the regex fragmenter.
  28. slop: 0.5
  29. # Specifies the regular expression for fragmenting. This could be used to
  30. # extract sentences.
  31. pattern: blank
  32. # Instructs Solr to analyze only this many characters from a field when using
  33. # the regex fragmenter (after which, the fragmenter produces fixed-sized
  34. # fragments). Applying a complicated regex to a huge field is computationally
  35. # expensive.
  36. maxAnalyzedChars: 10000
  37. excerpt:
  38. # Specifies maximum number of highlighted snippets to generate per field. It is
  39. # possible for any number of snippets from zero to this value to be generated.
  40. # This parameter accepts per-field overrides.
  41. snippets: 3
  42. # Specifies the size, in characters, of fragments to consider for highlighting.
  43. # 0 indicates that no fragmenting should be considered and the whole field value
  44. # should be used. This parameter accepts per-field overrides.
  45. fragsize: 70
  46. # Instructs Solr to collapse contiguous fragments into a single fragment. A
  47. # value of true indicates contiguous fragments will be collapsed into single
  48. # fragment. This parameter accepts per-field overrides. The default value,
  49. # false, is also the backward-compatible setting.
  50. mergeContiguous: false
  51. highlight:
  52. # Instructs Solr to collapse contiguous fragments into a single fragment. A
  53. # value of true indicates contiguous fragments will be collapsed into single
  54. # fragment. This parameter accepts per-field overrides. The default value,
  55. # false, is also the backward-compatible setting.
  56. mergeContiguous: false
  57. # If set to true, highlights terms only if they appear in the specified field.
  58. # If false, terms are highlighted in all requested fields regardless of which
  59. # field matched the query.
  60. requireFieldMatch: false