1
0
Commit graph

18 Commits

Autor SHA1 Nachricht Datum
cfed88e135 shared: sqlitesearch: Remove subquery for content search
The subquery only works for boolean retrieval, its
ordering is irrelevant. Thus, use INNER JOIN instead
and order by rank by default.
2021-03-07 22:27:48 +01:00
dd053f87f9 shared: qssquery: checkParanthesis(): Ignore paranthesis in quotes
Fixes #12
2020-12-19 12:52:40 +01:00
0cba6f3fa4 shared: sqlitesearch: Order by rank by default for content search
Making ranked results the default makes (obviously) more sense for
content search.
2020-12-19 12:42:28 +01:00
344eaa402e shared: sqlitesearch: reformat - no functional change 2020-12-19 12:42:11 +01:00
bbe8b1f530 Detect first run and initialize database and config
Relates to #1
2020-08-24 21:36:45 +02:00
c78062e234 Ship database creation script as embedded resource 2020-08-24 21:33:56 +02:00
34c828a453 Add Common::databasePath which also allows overriding it 2020-05-24 15:36:27 +02:00
bb4824764c added Common namespace. cli: use settings instead of env for db path 2020-05-23 22:52:42 +02:00
8047c16558 cli: search: implement -r, cleanup of options that don't belong there 2019-08-19 21:09:03 +02:00
404f05b89f Refactor search queries: Introduced QSSQuery
Purpose is to seperate certain logic from SQLite and generalize it more.
Even though we only have Sqlite atm, in general the database layers
must be stupid as possible, while QSSQuery should do most of the hard work.

Fixes in Tokenizer logic.
Switched to C++17.
2019-08-18 00:25:21 +02:00
9e0fbcd776 sqlitesearch: improve tokenizer and fix sort handling 2019-05-04 20:40:43 +02:00
233c30b66b search: fixed: order by after group by in content search 2019-04-27 21:23:06 +02:00
b8c0fc0ae3 search: default sort by mtime and page 2019-04-26 21:41:20 +02:00
08d81ef78b search: Avoid redundant results by placing pages into vector instead of returning searchresult for each page 2019-04-26 15:31:42 +02:00
e2f07d2357 Begin sort: statement implementation, use bindvalues in all search filters, gui: save current scale 2019-04-25 10:27:54 +02:00
131ab2e4e8 SqliteSearch: Use correct column for file size 2019-04-22 23:16:29 +02:00
95a650dd30 move more files to shared project ; searchresultt.h: use filedata.h 2019-04-22 21:07:41 +02:00
c928c94eb1 Begin 'shared' project to share code between cli and gui 2019-04-20 23:31:14 +02:00