ILIAS
Release_5_0_x_branch Revision 61816
|
Lucene query parser. More...
Public Member Functions | |
__construct ($a_query_string) | |
Constructor. | |
parse () | |
parse query string | |
parseAutoWildcard () | |
Append asterisk for remote search from global search form field. | |
getQuery () | |
get query |
Static Public Member Functions | |
static | validateQuery ($a_query) |
Protected Member Functions | |
replaceOwnerCallback ($matches) | |
Replace owner callback (preg_replace_callback) |
Static Protected Member Functions | |
static | checkAllowedCharacters ($query) |
Check allowed characters. | |
static | checkAsterisk ($query) |
Check asterisk. | |
static | checkAmpersands ($query) |
Check ampersands. | |
static | checkCaret ($query) |
Check carets. | |
static | checkSquiggle ($query) |
Check squiggles. | |
static | checkExclamationMark ($query) |
Check exclamation marks (replacement for NOT) | |
static | checkQuestionMark ($query) |
Check question mark (wild card single character) | |
static | checkParenthesis ($a_query) |
Check parenthesis. | |
static | checkPlusMinus ($a_query) |
Check plus minus. | |
static | checkANDORNOT ($a_query) |
Check AND OR NOT. | |
static | checkQuotes ($a_query) |
Check quotes. | |
static | checkColon ($a_query) |
Check colon. |
Protected Attributes | |
$query_string | |
$parsed_query |
ilLuceneQueryParser::__construct | ( | $a_query_string | ) |
Constructor.
string | query string |
Reimplemented in ilLuceneAdvancedQueryParser.
Definition at line 46 of file class.ilLuceneQueryParser.php.
|
staticprotected |
Check allowed characters.
LuceneQueryParserException |
Definition at line 131 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check ampersands.
LuceneQueryParserException |
Definition at line 157 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check AND OR NOT.
LuceneQueryParserException |
Definition at line 286 of file class.ilLuceneQueryParser.php.
|
staticprotected |
Check asterisk.
LuceneQueryParserException |
Definition at line 144 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check carets.
LuceneQueryParserException |
Definition at line 173 of file class.ilLuceneQueryParser.php.
References $query.
Referenced by validateQuery().
|
staticprotected |
Check colon.
LuceneQueryParserException |
Definition at line 329 of file class.ilLuceneQueryParser.php.
|
staticprotected |
Check exclamation marks (replacement for NOT)
LuceneQueryParserException |
Definition at line 199 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check parenthesis.
LuceneQueryParserException |
Definition at line 225 of file class.ilLuceneQueryParser.php.
Referenced by validateQuery().
|
staticprotected |
Check plus minus.
LuceneQueryParserException |
Definition at line 272 of file class.ilLuceneQueryParser.php.
|
staticprotected |
Check question mark (wild card single character)
LuceneQueryParserException |
Definition at line 212 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check quotes.
LuceneQueryParserException |
Definition at line 302 of file class.ilLuceneQueryParser.php.
Referenced by validateQuery().
|
staticprotected |
Check squiggles.
LuceneQueryParserException |
Definition at line 186 of file class.ilLuceneQueryParser.php.
References $query.
Referenced by validateQuery().
ilLuceneQueryParser::getQuery | ( | ) |
get query
Definition at line 82 of file class.ilLuceneQueryParser.php.
References $parsed_query.
ilLuceneQueryParser::parse | ( | ) |
parse query string
Reimplemented in ilLuceneAdvancedQueryParser, and ilMailLuceneQueryParser.
Definition at line 55 of file class.ilLuceneQueryParser.php.
Referenced by ilLuceneUserSearchGUI\performSearch(), and ilLuceneSearchGUI\showSavedResults().
ilLuceneQueryParser::parseAutoWildcard | ( | ) |
Append asterisk for remote search from global search form field.
Definition at line 64 of file class.ilLuceneQueryParser.php.
|
protected |
Replace owner callback (preg_replace_callback)
Definition at line 90 of file class.ilLuceneQueryParser.php.
References ilObjUser\_loginExists().
|
static |
LuceneQueryParserException |
Definition at line 106 of file class.ilLuceneQueryParser.php.
References checkCaret(), checkParenthesis(), checkQuotes(), and checkSquiggle().
Referenced by ilMailQuickFilterInputGUI\checkInput(), and ilLuceneQueryInputGUI\checkInput().
|
protected |
Definition at line 38 of file class.ilLuceneQueryParser.php.
Referenced by getQuery().
|
protected |
Definition at line 37 of file class.ilLuceneQueryParser.php.
Referenced by ilMailLuceneQueryParser\parse().