Abstract Class Zend_Search_Lucene_Analysis_Analyzer

Description

An Analyzer is used to analyze text.

It thus represents a policy for extracting index terms from text.

Note: Lucene Java implementation is oriented to streams. It provides effective work with a huge documents (more then 20Mb). But engine itself is not oriented such documents. Thus Zend_Search_Lucene analysis API works with data strings and sets (arrays).

  • abstract:
  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Search/Lucene/Analysis/Analyzer.php (line 62)


	
			
Direct descendents
Class Description
Abstract class Zend_Search_Lucene_Analysis_Analyzer_Common Common implementation of the Zend_Search_Lucene_Analysis_Analyzer interface.
Variable Summary
 string $_input
Method Summary
Variables
string $_input = null (line 76)

Input string

  • access: protected
Methods
static getDefault (line 143)

Return the default Analyzer implementation used by indexing code.

  • access: public
static setDefault (line 132)

Set the default Analyzer implementation used by indexing code.

  • access: public
static void setDefault (Zend_Search_Lucene_Analysis_Analyzer $analyzer, Zend_Search_Lucene_Analysis_Analyzer $similarity)
nextToken (line 122)

Tokenization stream API Get next token Returns null at the end of stream

  • access: public
  • abstract:

Redefined in descendants as:
reset (line 113)

Reset token stream

  • access: public
  • abstract:
void reset ()

Redefined in descendants as:
setInput (line 104)

Tokenization stream API Set input

  • access: public
void setInput (string $data)
  • string $data
tokenize (line 85)

Tokenize text to a terms Returns array of Zend_Search_Lucene_Analysis_Token objects

  • access: public
array tokenize (string $data)
  • string $data

Documentation generated on Thu, 18 Jan 2007 09:52:08 -0800 by phpDocumentor 1.3.1