AbstractAnalyzer
in package
implements
AnalyzerInterface
AbstractYes
General analyzer implementation.
Tags
Table of Contents
Interfaces
- AnalyzerInterface
- An AnalyzerInterface is used to analyze text.
Properties
- $_encoding : string
- Input string encoding
- $_input : string
- Input string
Methods
- setInput() : void
- Tokenization stream API Set input
- tokenize() : array<string|int, mixed>
- Tokenize text to a terms Returns array of \ZendSearch\Lucene\Analysis\Token objects
Properties
$_encoding
Input string encoding
protected
string
$_encoding
= ''
$_input
Input string
protected
string
$_input
= null
Methods
setInput()
Tokenization stream API Set input
public
setInput(string $data[, mixed $encoding = '' ]) : void
Parameters
- $data : string
- $encoding : mixed = ''
tokenize()
Tokenize text to a terms Returns array of \ZendSearch\Lucene\Analysis\Token objects
public
tokenize(string $data[, mixed $encoding = '' ]) : array<string|int, mixed>
Tokens are returned in UTF-8 (internal Zend_Search_Lucene encoding)
Parameters
- $data : string
- $encoding : mixed = ''