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.

integer
$_defaultOperator= 'self::B_OR'
Default boolean queries operator
self::B_OR
Details
\Zend_Search_Lucene_Search_QueryToken
$_lastToken= 'null'
Last token
It can be processed within FSM states, but this addirional state simplifies FSM
null
Details

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.
true
Details
_getInstance(
)
:
\Zend_Search_Lucene_Search_QueryParser
Get query parser instance
Type | Description |
---|---|
\Zend_Search_Lucene_Search_QueryParser |

closedRQLastTerm(
)
:
void
Process last range query term (closed interval)
Exception | Description |
---|---|
\Zend_Search_Lucene_Search_QueryParserException |

dontSuppressQueryParsingExceptions(
)
:
void
Turn off 'suppress query parser exceptions' mode.

escape(
string $keyword
)
:
string
Escape keyword to force it to be parsed as one term
Name | Type | Description |
---|---|---|
$keyword | string |
Type | Description |
---|---|
string |

getDefaultEncoding(
)
:
string
Get query string default encoding
Type | Description |
---|---|
string |

openedRQLastTerm(
)
:
void
Process last range query term (opened interval)
Exception | Description |
---|---|
\Zend_Search_Lucene_Search_QueryParserException |

parse(
string $strQuery, string $encoding
=
null
)
:
\Zend_Search_Lucene_Search_Query
Parses a query string
Name | Type | Description |
---|---|---|
$strQuery | string | |
$encoding | string |
Type | Description |
---|---|
\Zend_Search_Lucene_Search_Query |
Exception | Description |
---|---|
\Zend_Search_Lucene_Search_QueryParserException |

processModifierParameter(
)
:
void
Process modifier parameter
Exception | Description |
---|---|
\Zend_Search_Lucene_Exception |

queryParsingExceptionsSuppressed(
)
:
boolean
Check 'suppress query parser exceptions' mode.
Type | Description |
---|---|
boolean |

setDefaultEncoding(
string $encoding
)
:
void
Set query string default encoding
Name | Type | Description |
---|---|---|
$encoding | string |

setDefaultOperator(
integer $operator
)
:
void
Set default boolean operator
Name | Type | Description |
---|---|---|
$operator | integer |