database.search_query_parsing library

Parses a search query language which is very similar to Lucene query language.

Examples of supported queries:

  • norwegian forest cat
    • Matches keywords "norwegian", "forest", and "cat".
  • "norwegian forest cat"
    • A quoted keyword ensures that the words must appear as a sequence.
  • color:brown
    • Color matches keyword "brown".

For more details, see SearchQueryParser.

Classes

Scanner
Source scanner used by SearchQueryParser.
ScannerState
SearchQueryParser
Parses a search query language which is very similar to Lucene query language.
SearchQueryParserState
State parameter used by SearchQueryParser.
SearchQueryPrinter
Prints Filter trees in our search query language.
Source
Source used by Scanner.
Token
A token scanned by Scanner.

Enums

TokenType
Type of a scanned Token.