aboutsummaryrefslogtreecommitdiff
path: root/search_controller.go
diff options
context:
space:
mode:
Diffstat (limited to 'search_controller.go')
-rw-r--r--search_controller.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/search_controller.go b/search_controller.go
index 5ed762a..e41926c 100644
--- a/search_controller.go
+++ b/search_controller.go
@@ -151,8 +151,7 @@ func (sc *SearchController) PerformSearch(c context.Context, options SearchOptio
if options.RegexSearch.Pattern != "" {
regex = UnorderedDocument{"$regex": options.RegexSearch.Pattern, "$options": regexOptions}
} else {
- regex = UnorderedDocument{"$not":
- UnorderedDocument{"$regex": options.RegexSearch.NotPattern, "$options": regexOptions}}
+ regex = UnorderedDocument{"$not": UnorderedDocument{"$regex": options.RegexSearch.NotPattern, "$options": regexOptions}}
}
findQuery = findQuery.Filter(OrderedDocument{{"payload_string", regex}})