D28400: [AdvancedQueryParser] Move semantic handling of tokens to SearchStore

Stefan Brüns noreply at phabricator.kde.org
Sun Mar 29 12:13:25 BST 2020


bruns created this revision.
bruns added reviewers: Baloo, ngraham.
Herald added projects: Frameworks, Baloo.
Herald added a subscriber: kde-frameworks-devel.
bruns requested review of this revision.

REVISION SUMMARY
  The AdvancedQueryParser has no knowledge about the semantics of a
  value, while the searchstore can use KFM::PropertyInfo to determine
  if the value should be converted to e.g. an integer or a QDateTime.
  
  This allows to e.g. use CreationTime in queries.

TEST PLAN
  baloosearch 'creationtime>=2010-01-20'
  baloosearch 'creationDate>="1997-01-01 10:00:00"' \
  
    AND 'creationDate<=2000-01-01'

REPOSITORY
  R293 Baloo

BRANCH
  submit

REVISION DETAIL
  https://phabricator.kde.org/D28400

AFFECTED FILES
  autotests/unit/lib/advancedqueryparsertest.cpp
  src/engine/postingdb.cpp
  src/engine/postingdb.h
  src/engine/transaction.cpp
  src/engine/transaction.h
  src/lib/advancedqueryparser.cpp
  src/lib/searchstore.cpp
  src/lib/searchstore.h

To: bruns, #baloo, ngraham
Cc: kde-frameworks-devel, hurikhan77, lots0logs, LeGast00n, cblack, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200329/3a0bf602/attachment.html>


More information about the Kde-frameworks-devel mailing list