mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Refactor search to separate between a base query and user query
The `findBase` is adding only strictly required conditions. Everything else comes from the user.
This commit is contained in:
@ -23,7 +23,7 @@ object ItemQueryGeneratorTest extends SimpleTestSuite {
|
||||
RAttachmentMeta.as("m")
|
||||
)
|
||||
|
||||
test("migration") {
|
||||
test("basic test") {
|
||||
val q = ItemQueryParser
|
||||
.parseUnsafe("(& name:hello date>=2020-02-01 (| source=expense folder=test ))")
|
||||
val cond = ItemQueryGenerator(tables, Ident.unsafe("coll"))(q)
|
||||
|
Reference in New Issue
Block a user