\Zend_Search_Lucene_Analysis_Analyzer_Common
Common implementation of the Zend_Search_Lucene_Analysis_Analyzer interface.
There are several standard standard subclasses provided by Zend_Search_Lucene/Analysis
subpackage: Zend_Search_Lucene_Analysis_Analyzer_Common_Text, ZSearchHTMLAnalyzer, ZSearchXMLAnalyzer.
- Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Search_Lucene_Analysis_Analyzer_Common
extends Zend_Search_Lucene_Analysis_Analyzer
{
- // members
- private array $_filters = ;
- // Inherited members from Zend_Search_Lucene_Analysis_Analyzer
- protected $_input;
- protected string $_encoding;
- // Inherited methods from Zend_Search_Lucene_Analysis_Analyzer
- public array tokenize()
- public void setInput()
- public abstract void reset()
- public abstract Zend_Search_Lucene_Analysis_Token|null nextToken()
- public static void setDefault()
- public static Zend_Search_Lucene_Analysis_Analyzer getDefault()
Hierarchy
Tasks
Line | Task |
---|---|
62+ | ZSearchHTMLAnalyzer and ZSearchXMLAnalyzer implementation |
Members
private
- $_filters
—
array
The set of Token filters applied to the Token stream.
protected
- $_encoding
—
string
Input string encoding - $_input
—
string
Input string
Methods
public
- addFilter() — Add Token filter to the Analyzer
- normalize() — Apply filters to the token. Can return null when the token was removed.
Inherited from Zend_Search_Lucene_Analysis_Analyzer
public
- getDefault() — Return the default Analyzer implementation used by indexing code.
- nextToken() — Tokenization stream API Get next token Returns null at the end of stream
- reset() — Reset token stream
- setDefault() — Set the default Analyzer implementation used by indexing code.
- setInput() — Tokenization stream API Set input
- tokenize() — Tokenize text to a terms Returns array of Zend_Search_Lucene_Analysis_Token objects