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.
GM_SIGNS = '0'
Entries grouping mode
GM_BOOLEAN = '1'
string|null $_defaultField = ''
Default field for the context.
null means, that term should be searched through all fields Zend_Search_Lucene_Search_Query::rewriteQuery($index) transletes such queries to several
string $_encoding = ''
Query string encoding
array $_entries = 'array'
Query entries Each entry is a Zend_Search_Lucene_Search_QueryEntry object or boolean operator (Zend_Search_Lucene_Search_QueryToken class constant)
integer $_mode = 'null'
Grouping mode
string $_nextEntryField = 'null'
Field specified for next entry
boolean $_nextEntrySign = 'null'
True means, that term is required.
False means, that term is prohibited. null means, that term is neither prohibited, nor required
arrays $_signs = 'array'
Entries signs.
Used in GM_SIGNS grouping mode
__construct(
string $encoding, string|null $defaultField
=
null
)
:
Context object constructor
_booleanExpressionQuery(
)
:
Zend_Search_Lucene_Search_Query
Generate 'boolean style' query from the context 'term1 and term2 or term3 and (<subquery1>) and not (<subquery2>)'
_signStyleExpressionQuery(
)
:
Zend_Search_Lucene_Search_Query
Generate 'signs style' query from the context '+term1 term2 -term3 +(<subquery1>) ...'
addEntry(
Zend_Search_Lucene_Search_QueryEntry $entry
)
:
Add entry to a query
addLogicalOperator(
integer $operator
)
:
Process logical operator
boost(
float $boostFactor
)
:
Set boost factor to the entry
getField(
)
:
string|null
Get context default field
getQuery(
)
:
Zend_Search_Lucene_Search_Query
Generate query from current context
processFuzzyProximityModifier(
$parameter
=
null
)
:
Process fuzzy search or proximity search modifier
setNextEntryField(
string $field
)
:
Set field for next entry
setNextEntrySign(
integer $sign
)
:
Set sign for next entry