You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by ku...@apache.org on 2023/12/18 09:53:01 UTC

(incubator-answer) 05/05: update

This is an automated email from the ASF dual-hosted git repository.

kumfo pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 67d1af366d36ec790891037ac2e6cb555d592a08
Author: hgaol <dh...@hotmail.com>
AuthorDate: Mon Dec 18 17:47:54 2023 +0800

    update
---
 internal/repo/search_common/search_repo.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/internal/repo/search_common/search_repo.go b/internal/repo/search_common/search_repo.go
index ceb3313f..0443bfe9 100644
--- a/internal/repo/search_common/search_repo.go
+++ b/internal/repo/search_common/search_repo.go
@@ -157,9 +157,9 @@ func (sr *searchRepo) SearchContents(ctx context.Context, words []string, tagIDs
 			And(builder.In(ast+".tag_id", tagID))
 		ub.Join("INNER", "tag_rel as "+ast, "question_id = "+ast+".object_id").
 			And(builder.Eq{
-				ast + ".tag_id": tagID,
 				ast + ".status": entity.TagRelStatusAvailable,
-			})
+			}).
+			And(builder.In(ast+".tag_id", tagID))
 		argsQ = append(argsQ, entity.TagRelStatusAvailable)
 		argsA = append(argsA, entity.TagRelStatusAvailable)
 		for _, t := range tagID {