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.
B_OR = '0'
Boolean operators constants
B_AND = '1'
ST_COMMON_QUERY_ELEMENT = '0'
Query parser State Machine states
ST_CLOSEDINT_RQ_START = '1'
ST_CLOSEDINT_RQ_FIRST_TERM = '2'
ST_CLOSEDINT_RQ_TO_TERM = '3'
ST_CLOSEDINT_RQ_LAST_TERM = '4'
ST_CLOSEDINT_RQ_END = '5'
ST_OPENEDINT_RQ_START = '6'
ST_OPENEDINT_RQ_FIRST_TERM = '7'
ST_OPENEDINT_RQ_TO_TERM = '8'
ST_OPENEDINT_RQ_LAST_TERM = '9'
ST_OPENEDINT_RQ_END = '10'
Zend_Search_Lucene_Search_QueryParserContext $_context = ''
Current query parser context
array $_contextStack = ''
Context stack
integer|string $_currentToken = ''
Current token
string $_defaultEncoding = ''
Query string default encoding
integer $_defaultOperator = 'self'
Default boolean queries operator
string $_encoding = ''
Query string encoding
Zend_Search_Lucene_Search_QueryParser $_instance = 'null'
Parser instance
Zend_Search_Lucene_Search_QueryToken $_lastToken = 'null'
Last token
It can be processed within FSM states, but this addirional state simplifies FSM
Zend_Search_Lucene_Search_QueryLexer $_lexer = ''
Query lexer
string $_rqFirstTerm = 'null'
Range query first term
boolean $_suppressQueryParsingExceptions = 'true'
Defines query parsing mode.
If this option is turned on, then query parser suppress query parser exceptions and constructs multi-term query using all words from a query.
That helps to avoid exceptions caused by queries, which don't conform to query language, but limits possibilities to check, that query entered by user has some inconsistencies.
Default is true.
Use {@link Zend_Search_Lucene::suppressQueryParsingExceptions()}, {@link Zend_Search_Lucene::dontSuppressQueryParsingExceptions()} and {@link Zend_Search_Lucene::checkQueryParsingExceptionsSuppressMode()} to operate with this setting.
array $_tokens = ''
Tokens list Array of Zend_Search_Lucene_Search_QueryToken objects
__construct(
)
:
Parser constructor
_getInstance(
)
:
Zend_Search_Lucene_Search_QueryParser
Get query parser instance
addPhraseEntry(
)
:
Add phrase to a query
addTermEntry(
)
:
Add term to a query
closedRQFirstTerm(
)
:
Process first range query term (closed interval)
closedRQLastTerm(
)
:
Process last range query term (closed interval)
dontSuppressQueryParsingExceptions(
)
:
Turn off 'suppress query parser exceptions' mode.
escape(
string $keyword
)
:
string
Escape keyword to force it to be parsed as one term
getDefaultEncoding(
)
:
string
Get query string default encoding
getDefaultOperator(
)
:
integer
Get default boolean operator
logicalOperator(
)
:
Process logical operator
openedRQFirstTerm(
)
:
Process first range query term (opened interval)
openedRQLastTerm(
)
:
Process last range query term (opened interval)
parse(
string $strQuery, string $encoding
=
null
)
:
Zend_Search_Lucene_Search_Query
Parses a query string
processFuzzyProximityModifier(
)
:
Process fuzzy search/proximity modifier - '~'
processModifierParameter(
)
:
Process modifier parameter
queryParsingExceptionsSuppressed(
)
:
boolean
Check 'suppress query parser exceptions' mode.
setDefaultEncoding(
string $encoding
)
:
Set query string default encoding
setDefaultOperator(
integer $operator
)
:
Set default boolean operator
setField(
)
:
Set entry field
setSign(
)
:
Set entry sign
subqueryEnd(
)
:
End subquery
subqueryStart(
)
:
Start subquery
suppressQueryParsingExceptions(
)
:
Turn on 'suppress query parser exceptions' mode.