Search/Lucene/Search/Query/Boolean.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Search_Lucene
- Subpackage
- Search
- Version
- $Id$
\Zend_Search_Lucene_Search_Query_Boolean
Package: Zend_Search_Lucene\Search- Parent(s)
- \Zend_Search_Lucene_Search_Query
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
mixed $_coord = null
A score factor based on the fraction of all query subqueries
that a document contains.
float for conjunction queries
array of float for non conjunction queries
Default valuenull
Details- Type
- mixed
array $_subqueries = array()
Subqueries
Array of Zend_Search_Lucene_Search_Query
Default valuearray()
Details- Type
- array
Methods
__construct(array $subqueries = null, array $signs = null) : void
Class constructor. Create a new Boolean query object.
if $signs array is omitted then all subqueries are required
it differs from addSubquery() behavior, but should never be used
ParametersName | Type | Description |
---|
$subqueries | array | Array of Zend_Search_Search_Query objects |
---|
$signs | array | Array of signs. Sign is boolean|null. |
---|
addSubquery(\Zend_Search_Lucene_Search_Query $subquery, boolean | null $sign = null) : void
Add a $subquery (Zend_Search_Lucene_Search_Query) to this query.
The sign is specified as:
TRUE - subquery is required
FALSE - subquery is prohibited
NULL - subquery is neither prohibited, nor required
ParametersmatchedDocs() : array
Get document ids likely matching the query
It's an array with document ids as keys (performance considerations)
Returns