Docs For Class Zend_Search_Lucene_Search_Query_Boolean

## Class Zend_Search_Lucene_Search_Query_Boolean

Description

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

Located in /Zend/Search/Lucene/Search/Query/Boolean.php (line 37)

    Zend_Search_Lucene_Search_Query
       |
       --Zend_Search_Lucene_Search_Query_Boolean

Method Summary
void __construct ([array $subqueries = null], [array $signs = null])
void addSubquery (Zend_Search_Lucene_Search_Query $subquery, [boolean|null $sign = null])
Zend_Search_Lucene_Search_Weight createWeight (Zend_Search_Lucene $reader)
array getSigns ()
array getSubqueries ()
float score (integer $docId, Zend_Search_Lucene $reader)
float _conjunctionScore (integer $docId, Zend_Search_Lucene $reader)
float _nonConjunctionScore (integer $docId, Zend_Search_Lucene $reader)
Variables

#### Inherited Variables

Inherited from Zend_Search_Lucene_Search_Query

> Zend_Search_Lucene_Search_Query::$_weight

Methods
Constructor __construct (line 79)

Class constructor. Create a new Boolean query object.

- access: public

void __construct ([array $subqueries = null], [array $signs = null])

- array $subqueries: Array of Zend_Search_Search_Query objects
- array $signs: Array of signs. Sign is boolean|null.

addSubquery (line 110)

Add a $subquery (Zend_Search_Lucene_Query) to this query.

The sign is specified as: TRUE - subquery is required FALSE - subquery is prohibited NULL - subquery is neither prohibited, nor required

- access: public

void addSubquery (Zend_Search_Lucene_Search_Query $subquery, [boolean|null $sign = null])

- Zend_Search_Lucene_Search_Query $subquery
- boolean|null $sign

createWeight (line 152)

Constructs an appropriate Weight implementation for this query.

- access: public

Zend_Search_Lucene_Search_Weight createWeight (Zend_Search_Lucene $reader)

- Zend_Search_Lucene $reader

Redefinition of:

Zend_Search_Lucene_Search_Query::createWeight()
  Constructs an appropriate Weight implementation for this query.

getSigns (line 140)

Return subqueries signs

- access: public

array getSigns ()
getSubqueries (line 129)

Returns subqueries

- access: public

array getSubqueries ()
score (line 238)

Score specified document

- access: public

float score (integer $docId, Zend_Search_Lucene $reader)

- integer $docId
- Zend_Search_Lucene $reader

Redefinition of:

Zend_Search_Lucene_Search_Query::score()
  Score specified document

_conjunctionScore (line 166)

Score calculator for conjunction queries (all subqueries are required)

- access: public

float _conjunctionScore (integer $docId, Zend_Search_Lucene $reader)

- integer $docId
- Zend_Search_Lucene $reader

_nonConjunctionScore (line 190)

Score calculator for non conjunction queries (not all subqueries are required)

- access: public

float _nonConjunctionScore (integer $docId, Zend_Search_Lucene $reader)

- integer $docId
- Zend_Search_Lucene $reader

#### Inherited Methods

Inherited From Zend_Search_Lucene_Search_Query

> Zend_Search_Lucene_Search_Query::createWeight()
> Zend_Search_Lucene_Search_Query::getBoost()
> Zend_Search_Lucene_Search_Query::reset()
> Zend_Search_Lucene_Search_Query::score()
> Zend_Search_Lucene_Search_Query::setBoost()
> Zend_Search_Lucene_Search_Query::_initWeight()

Documentation generated on Sun, 29 Oct 2006 21:27:02 -0600 by phpDocumentor 1.3.0RC6