Class cebe\jssearch\analyzer\HtmlAnalyzer

Inheritancecebe\jssearch\analyzer\HtmlAnalyzer
Implementscebe\jssearch\AnalyzerInterface

Analyzer for HTML files

Public Methods

Hide inherited methods

MethodDescriptionDefined By
analyze() Analyzes a string and returns an array of the following format: cebe\jssearch\analyzer\HtmlAnalyzer

Property Details

$headWeight public property
public $headWeight 20
$textWeight public property
public $textWeight 1.2
$titleWeight public property
public $titleWeight 4

Method Details

analyze() public method

Analyzes a string and returns an array of the following format:

TODO ` `

public array analyze ( $string, cebe\jssearch\TokenizerInterface $tokenizer )
$string string

The string to analyze

$tokenizer