|
ILIAS
release_8 Revision v8.24
|
Lucene query parser. More...
Inheritance diagram for ilLuceneQueryParser:
Collaboration diagram for ilLuceneQueryParser:Public Member Functions | |
| __construct ($a_query_string) | |
| Constructor. More... | |
| parse () | |
| parse query string More... | |
| parseAutoWildcard () | |
| Append asterisk for remote search from global search form field. More... | |
| getQuery () | |
Static Public Member Functions | |
| static | validateQuery ($a_query) |
Protected Member Functions | |
| replaceOwnerCallback (array $matches) | |
| Replace owner callback (preg_replace_callback) More... | |
Static Protected Member Functions | |
| static | checkAllowedCharacters (string $query) |
| Check allowed characters. More... | |
| static | checkAsterisk (string $query) |
| Check asterisk. More... | |
| static | checkAmpersands (string $query) |
| Check ampersands. More... | |
| static | checkCaret (string $query) |
| Check carets. More... | |
| static | checkSquiggle (string $query) |
| Check squiggles. More... | |
| static | checkExclamationMark (string $query) |
| Check exclamation marks (replacement for NOT) More... | |
| static | checkQuestionMark (string $query) |
| Check question mark (wild card single character) More... | |
| static | checkParenthesis (string $a_query) |
| Check parenthesis. More... | |
| static | checkPlusMinus (string $a_query) |
| Check plus minus. More... | |
| static | checkANDORNOT (string $a_query) |
| Check AND OR NOT. More... | |
| static | checkQuotes (string $a_query) |
| Check quotes. More... | |
| static | checkColon (string $a_query) |
| Check colon. More... | |
Protected Attributes | |
| string | $query_string |
| string | $parsed_query = '' |
Lucene query parser.
Definition at line 35 of file class.ilLuceneQueryParser.php.
| ilLuceneQueryParser::__construct | ( | $a_query_string | ) |
Constructor.
| string | query string |
Reimplemented in ilLuceneAdvancedQueryParser.
Definition at line 45 of file class.ilLuceneQueryParser.php.
|
staticprotected |
Check allowed characters.
| ilLuceneQueryParserException |
Definition at line 121 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check ampersands.
| ilLuceneQueryParserException |
Definition at line 145 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check AND OR NOT.
| ilLuceneQueryParserException |
Definition at line 261 of file class.ilLuceneQueryParser.php.
|
staticprotected |
Check asterisk.
| ilLuceneQueryParserException |
Definition at line 133 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check carets.
| ilLuceneQueryParserException |
Definition at line 159 of file class.ilLuceneQueryParser.php.
References $query.
Referenced by validateQuery().
Here is the caller graph for this function:
|
staticprotected |
Check colon.
| ilLuceneQueryParserException |
Definition at line 297 of file class.ilLuceneQueryParser.php.
|
staticprotected |
Check exclamation marks (replacement for NOT)
| ilLuceneQueryParserException |
Definition at line 183 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check parenthesis.
| ilLuceneQueryParserException |
Definition at line 207 of file class.ilLuceneQueryParser.php.
Referenced by validateQuery().
Here is the caller graph for this function:
|
staticprotected |
Check plus minus.
| ilLuceneQueryParserException |
Definition at line 248 of file class.ilLuceneQueryParser.php.
|
staticprotected |
Check question mark (wild card single character)
| ilLuceneQueryParserException |
Definition at line 195 of file class.ilLuceneQueryParser.php.
References $query.
|
staticprotected |
Check quotes.
| ilLuceneQueryParserException |
Definition at line 274 of file class.ilLuceneQueryParser.php.
Referenced by validateQuery().
Here is the caller graph for this function:
|
staticprotected |
Check squiggles.
| ilLuceneQueryParserException |
Definition at line 171 of file class.ilLuceneQueryParser.php.
References $query.
Referenced by validateQuery().
Here is the caller graph for this function:| ilLuceneQueryParser::getQuery | ( | ) |
Definition at line 77 of file class.ilLuceneQueryParser.php.
References $parsed_query.
| ilLuceneQueryParser::parse | ( | ) |
parse query string
Reimplemented in ilMailLuceneQueryParser, and ilLuceneAdvancedQueryParser.
Definition at line 54 of file class.ilLuceneQueryParser.php.
References $query_string.
| ilLuceneQueryParser::parseAutoWildcard | ( | ) |
Append asterisk for remote search from global search form field.
Definition at line 66 of file class.ilLuceneQueryParser.php.
|
protected |
Replace owner callback (preg_replace_callback)
Definition at line 85 of file class.ilLuceneQueryParser.php.
References ilObjUser\_loginExists().
Here is the call graph for this function:
|
static |
| ilLuceneQueryParserException |
Definition at line 100 of file class.ilLuceneQueryParser.php.
References checkCaret(), checkParenthesis(), checkQuotes(), and checkSquiggle().
Referenced by ilMailQuickFilterInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilSearchLuceneQueryParserTest\testFailedParenthesis(), and ilSearchLuceneQueryParserTest\testValidation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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(), and parse().