Commit 82257d3c authored by Nick Thomas's avatar Nick Thomas

Move clauses from query to filter stage for elasticsearch notes

This helps avoid hardcoded limits on number of query clauses
parent 3fa4d8ab
...@@ -102,7 +102,7 @@ module Elastic ...@@ -102,7 +102,7 @@ module Elastic
} }
end end
query_hash[:query][:bool][:must] << filter query_hash[:query][:bool][:filter] << filter
query_hash query_hash
end end
end end
......
---
title: Fix searching for notes with elasticsearch when a user is a member of many
projects
merge_request: 1675
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment