API Documentation

Search/Lucene/Field.php

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
Document
version
$Id: Field.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Search_Lucene_Field

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_Field

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
Document
Properties
$name
$value
$isStored
$isIndexed
$isTokenized
$isBinary
$storeTermVector
$boost
$encoding
Methods
__construct
keyword
unIndexed
binary
text
unStored
getUtf8Value

Description

A field is a section of a Document. Each field has two parts, a name and a value. Values may be free text or they may be atomic keywords, which are not further processed. Such keywords may be used to represent dates, urls, etc. Fields are optionally stored in the index, so that they may be returned with hits on the document.

Properties

$boost

float $boost = '1.0'

Field boost factor It's not stored directly in the index, but affects on normalization factor

Details

$boost
float
visibility
public
default
1.0
final
false
static
false

$encoding

string $encoding = ''

Field value encoding.

Details

$encoding
string
visibility
public
default
final
false
static
false

$isBinary

boolean $isBinary = 'false'

Field is stored as binary.

Details

$isBinary
boolean
visibility
public
default
false
final
false
static
false

$isIndexed

boolean $isIndexed = 'true'

Field is to be indexed, so that it may be searched on.

Details

$isIndexed
boolean
visibility
public
default
true
final
false
static
false

$isStored

boolean $isStored = 'false'

Field is to be stored in the index for return with search hits.

Details

$isStored
boolean
visibility
public
default
false
final
false
static
false

$isTokenized

boolean $isTokenized = 'true'

Field should be tokenized as text prior to indexing.

Details

$isTokenized
boolean
visibility
public
default
true
final
false
static
false

$name

string $name = ''

Field name

Details

$name
string
visibility
public
default
final
false
static
false

$storeTermVector

boolean $storeTermVector = 'false'

Field are stored as a term vector

Details

$storeTermVector
boolean
visibility
public
default
false
final
false
static
false

$value

boolean $value = ''

Field value

Details

$value
boolean
visibility
public
default
final
false
static
false

Methods

__construct

__construct( string $name, string $value, string $encoding, boolean $isStored, boolean $isIndexed, boolean $isTokenized, boolean $isBinary = false ) :

Object constructor

Arguments
$name
string
$value
string
$encoding
string
$isStored
boolean
$isIndexed
boolean
$isTokenized
boolean
$isBinary
boolean
Details
visibility
public
final
false
static
false

binary

binary( string $name, string $value ) : Zend_Search_Lucene_Field

Constructs a Binary String valued Field that is not tokenized nor indexed, but is stored in the index, for return with hits.

Arguments
$name
string
$value
string
Details
visibility
public
final
false
static
true

getUtf8Value

getUtf8Value( ) : string

Get field value in UTF-8 encoding

Output
string
Details
visibility
public
final
false
static
false

keyword

keyword( string $name, string $value, string $encoding ) : Zend_Search_Lucene_Field

Constructs a String-valued Field that is not tokenized, but is indexed and stored. Useful for non-text fields, e.g. date or url.

Arguments
$name
string
$value
string
$encoding
string
Details
visibility
public
final
false
static
true

text

text( string $name, string $value, string $encoding ) : Zend_Search_Lucene_Field

Constructs a String-valued Field that is tokenized and indexed, and is stored in the index, for return with hits. Useful for short text fields, like "title" or "subject". Term vector will not be stored for this field.

Arguments
$name
string
$value
string
$encoding
string
Details
visibility
public
final
false
static
true

unIndexed

unIndexed( string $name, string $value, string $encoding ) : Zend_Search_Lucene_Field

Constructs a String-valued Field that is not tokenized nor indexed, but is stored in the index, for return with hits.

Arguments
$name
string
$value
string
$encoding
string
Details
visibility
public
final
false
static
true

unStored

unStored( string $name, string $value, string $encoding ) : Zend_Search_Lucene_Field

Constructs a String-valued Field that is tokenized and indexed, but that is not stored in the index.

Arguments
$name
string
$value
string
$encoding
string
Details
visibility
public
final
false
static
true
Documentation was generated by DocBlox.