|
const | TYPE = 'highlighting' |
|
const | FVH_HL_TYPE = 'fvh' |
|
const | DEFAULT_TARGET_PRIORITY = 100 |
| Priority for properties that are doc dependent (e.g.
|
|
const | QUERY_DEPENDENT_TARGET_PRIORITY = 200 |
| Priority for properties that are query dependent (highlight in content)
|
|
const | EXPERT_SYNTAX_PRIORITY = 300 |
| Priority for properties that are query dependent and triggered using search keywords (intitle:foo highlight)
|
|
const | TARGET_TITLE_SNIPPET = ArrayCirrusSearchResult::TITLE_SNIPPET |
|
const | TARGET_REDIRECT_SNIPPET = ArrayCirrusSearchResult::REDIRECT_SNIPPET |
|
const | TARGET_CATEGORY_SNIPPET = ArrayCirrusSearchResult::CATEGORY_SNIPPET |
|
const | TARGET_MAIN_SNIPPET = ArrayCirrusSearchResult::TEXT_SNIPPET |
|
const | TARGET_SECTION_SNIPPET = ArrayCirrusSearchResult::SECTION_SNIPPET |
|
const | COSTLY_EXPERT_SYNTAX_PRIORITY = 400 |
| Priority for properties are query dependent and triggered using costly search keywords (for intitle:/foo[0-9]/ intitle:bar we will prefer the highlight on the regex over the simple intitle:bar)
|
|
|
| matchPlainFields () |
| Helper function to populate the matchedFields array with the additional .plain field.
|
|
◆ __construct()
CirrusSearch\Search\Fetch\BaseHighlightedField::__construct |
( |
| $fieldName, |
|
|
| $highlighterType, |
|
|
| $target, |
|
|
| $priority = self::DEFAULT_TARGET_PRIORITY ) |
◆ addMatchedField()
CirrusSearch\Search\Fetch\BaseHighlightedField::addMatchedField |
( |
| $field | ) |
|
◆ addOption()
CirrusSearch\Search\Fetch\BaseHighlightedField::addOption |
( |
| $option, |
|
|
| $value ) |
- Parameters
-
string | $option | |
mixed | $value | (json serialization value) |
- Returns
- self
◆ entireValue()
static CirrusSearch\Search\Fetch\BaseHighlightedField::entireValue |
( |
| ) |
|
|
staticprotected |
◆ getFactories()
static CirrusSearch\Search\Fetch\BaseHighlightedField::getFactories |
( |
| ) |
|
|
static |
◆ getFragmenter()
CirrusSearch\Search\Fetch\BaseHighlightedField::getFragmenter |
( |
| ) |
|
◆ getFragmentSize()
CirrusSearch\Search\Fetch\BaseHighlightedField::getFragmentSize |
( |
| ) |
|
◆ getHighlighterType()
CirrusSearch\Search\Fetch\BaseHighlightedField::getHighlighterType |
( |
| ) |
|
◆ getHighlightQuery()
CirrusSearch\Search\Fetch\BaseHighlightedField::getHighlightQuery |
( |
| ) |
|
- Returns
- AbstractQuery|null
◆ getMatchedFields()
CirrusSearch\Search\Fetch\BaseHighlightedField::getMatchedFields |
( |
| ) |
|
◆ getNoMatchSize()
CirrusSearch\Search\Fetch\BaseHighlightedField::getNoMatchSize |
( |
| ) |
|
◆ getNumberOfFragments()
CirrusSearch\Search\Fetch\BaseHighlightedField::getNumberOfFragments |
( |
| ) |
|
◆ getOptions()
CirrusSearch\Search\Fetch\BaseHighlightedField::getOptions |
( |
| ) |
|
◆ getOrder()
CirrusSearch\Search\Fetch\BaseHighlightedField::getOrder |
( |
| ) |
|
◆ matchPlainFields()
CirrusSearch\Search\Fetch\BaseHighlightedField::matchPlainFields |
( |
| ) |
|
|
protected |
Helper function to populate the matchedFields array with the additional .plain field.
This only works if the getFieldName() denotes the actual elasticsearch field to highlight and is not already a plain field.
◆ merge()
CirrusSearch\Search\Fetch\BaseHighlightedField::merge |
( |
HighlightedField | $other | ) |
|
◆ redirectAndHeadings()
static CirrusSearch\Search\Fetch\BaseHighlightedField::redirectAndHeadings |
( |
| ) |
|
|
staticprotected |
◆ setFragmenter()
CirrusSearch\Search\Fetch\BaseHighlightedField::setFragmenter |
( |
| $fragmenter | ) |
|
◆ setFragmentSize()
CirrusSearch\Search\Fetch\BaseHighlightedField::setFragmentSize |
( |
| $fragmentSize | ) |
|
◆ setHighlightQuery()
CirrusSearch\Search\Fetch\BaseHighlightedField::setHighlightQuery |
( |
AbstractQuery | $highlightQuery | ) |
|
- Parameters
-
AbstractQuery | $highlightQuery | |
- Returns
- self
◆ setNoMatchSize()
CirrusSearch\Search\Fetch\BaseHighlightedField::setNoMatchSize |
( |
| $noMatchSize | ) |
|
◆ setNumberOfFragments()
CirrusSearch\Search\Fetch\BaseHighlightedField::setNumberOfFragments |
( |
| $numberOfFragments | ) |
|
- Parameters
-
int | null | $numberOfFragments | |
- Returns
- self
◆ setOrder()
CirrusSearch\Search\Fetch\BaseHighlightedField::setOrder |
( |
| $order | ) |
|
◆ skipIfLastMatched()
CirrusSearch\Search\Fetch\BaseHighlightedField::skipIfLastMatched |
( |
| ) |
|
◆ text()
static CirrusSearch\Search\Fetch\BaseHighlightedField::text |
( |
| ) |
|
|
staticprotected |
◆ toArray()
CirrusSearch\Search\Fetch\BaseHighlightedField::toArray |
( |
| ) |
|
The documentation for this class was generated from the following file:
- includes/Search/Fetch/BaseHighlightedField.php