From 87b3db5d988903f32ebf0c1fa9115af626dda499 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 11 Aug 2021 00:53:16 -0300 Subject: [PATCH] signature_valid->is_signature_valid --- server/search.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/search.go b/server/search.go index 932909f..8f5026c 100644 --- a/server/search.go +++ b/server/search.go @@ -454,12 +454,12 @@ func (s *Server) setupEsQuery( if in.HasChannelSignature != nil && in.HasChannelSignature.Value { q = q.Must(elastic.NewExistsQuery("signature_digest")) if in.SignatureValid != nil { - q = q.Must(elastic.NewTermQuery("signature_valid", in.SignatureValid.Value)) + q = q.Must(elastic.NewTermQuery("is_signature_valid", in.SignatureValid.Value)) } } else if in.SignatureValid != nil { q = q.MinimumNumberShouldMatch(1) q = q.Should(elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery("signature_digest"))) - q = q.Should(elastic.NewTermQuery("signature_valid", in.SignatureValid.Value)) + q = q.Should(elastic.NewTermQuery("is_signature_valid", in.SignatureValid.Value)) } if in.HasSource != nil {