From 4bea1f1ec62dffaf8dc4d9b9fd71b00c0238e3a6 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 2 Sep 2021 18:03:41 +0000 Subject: [PATCH] --- server/AyaNova/DataList/DataListSqlFilterCriteriaBuilder.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/AyaNova/DataList/DataListSqlFilterCriteriaBuilder.cs b/server/AyaNova/DataList/DataListSqlFilterCriteriaBuilder.cs index 92aad5c3..f722f0c8 100644 --- a/server/AyaNova/DataList/DataListSqlFilterCriteriaBuilder.cs +++ b/server/AyaNova/DataList/DataListSqlFilterCriteriaBuilder.cs @@ -1632,8 +1632,14 @@ namespace AyaNova.DataList ### HOW IT SHOULD WORK ### Equality: Exactly equal (aside from order) compare entire search term array to tag array in db - all terms in search exactly present and no others in db record Not equal: Not EXACTLY Equal (aside from order) All terms in search term array NOT present in All terms in db record. IOW if db record has all search terms but also one more tag then it's NOT equal, Order doesn't matter + NO value: Empty tag array in db record + db record tags has NO value + where tags = '{}' + Has value: Non empty tag array in db record + db record tags has value + where tags <> '{}' Contains: All terms in search query present in db record, db record may have other tags but that's ok as long as it has the search term ones (order insensitive) db record Tags contains search tags (and maybe also other tags)