Search/Lucene/Search/Query/MultiTerm.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_MultiTerm
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 terms
that a document contains.
float for conjunction queries
array of float for non conjunction queries
Default valuenull
Details- Type
- mixed
array $_weights = array()
Terms weights
array of Zend_Search_Lucene_Search_Weight
Default valuearray()
Details- Type
- array
Methods
__construct(array $terms = null, array $signs = null) : void
Class constructor. Create a new multi-term query object.
if $signs array is omitted then all terms are required
it differs from addTerm() behavior, but should never be used
ParametersName | Type | Description |
---|
$terms | array | Array of Zend_Search_Lucene_Index_Term objects |
---|
$signs | array | Array of signs. Sign is boolean|null. |
---|
ThrowsaddTerm(\Zend_Search_Lucene_Index_Term $term, boolean | null $sign = null) : void
Add a $term (Zend_Search_Lucene_Index_Term) to this query.
The sign is specified as:
TRUE - term is required
FALSE - term is prohibited
NULL - term 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