- Make
Querysealed instead of abstract.
- Updated
petitparserdependency.
- Naming consistency refactor:
ScopeQueryis returned instead ofFieldScope.CompareQueryis returned instead ofFieldCompareQuery.- Old classes are kept in compatibility mode and are deprecated.
- Added
QueryEvaluatorto help evaluating queries.
Breaking changes
FieldScope.field,FieldCompareQuery.fieldandFieldCompareQuery.operatorare now aTextQuery.field:<exp>andfield <operator> <exp>:<exp>can now be an empty string.TextQuery.isExactandPhraseQuery.isExactare removed.PhraseQueryis always exact andTextQuerynever is.
Updated
- Added
SourcePositiontoQuery, storing thestartandendindex of the matching input.
Thanks to North101 working on #9 to make this happen!
- Upgraded
petitparserto5.0.0.
- Migrated to new
petitparserAPI (ref). - Deprecated non-public API
QueryParser, useQueryGrammarDefinition.buildinstead. - Fixed grammar issues #6 by North101.
- Migrated to null safety.
- nested groups
|as alias forOR- phrase search expression contain the separate words/phrases as a children list
- Update sources to Dart 2.3 SDK and lints.
- More lints and checks in
analysis_options.yaml.
- Support for new
petitparserAPI.
- Support for non-ASCII characters in scope and words.
- Initial version.