API Documentation

Search/Lucene/Analysis/TokenFilter/ShortWords.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Search_Lucene
subpackage
Analysis
version
$Id: ShortWords.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Search_Lucene_Analysis_TokenFilter_ShortWords

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Search_Lucene_Analysis_TokenFilter_ShortWords

Extends from
Zend_Search_Lucene_Analysis_TokenFilter
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Search_Lucene
subpackage
Analysis
Properties
$length
Methods
__construct
normalize

Description

Token filter that removes short words. What is short word can be configured with constructor.

Properties

$length

integer $length = ''

Minimum allowed term length

Details

$length
integer
visibility
private
default
final
false
static
false

Methods

__construct

__construct(  $length = 2 ) :

Constructs new instance of this filter.

Arguments
$length
Details
visibility
public
final
false
static
false

normalize

normalize( Zend_Search_Lucene_Analysis_Token $srcToken ) : Zend_Search_Lucene_Analysis_Token

Normalize Token or remove it (if null is returned)

Arguments
$srcToken
Zend_Search_Lucene_Analysis_Token
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.