From 189addebe900b51354ae89ff7143ce629544585d Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 5 Jan 2016 23:50:39 -0800 Subject: [PATCH] decrease threshold to use cosine similarity algo for related tags --- app/models/tag.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/tag.rb b/app/models/tag.rb index e108914fb..71d811619 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -1,5 +1,5 @@ class Tag < ActiveRecord::Base - COSINE_SIMILARITY_RELATED_TAG_THRESHOLD = 50_000 + COSINE_SIMILARITY_RELATED_TAG_THRESHOLD = 500 METATAGS = "-user|user|-approver|approver|commenter|comm|noter|noteupdater|artcomm|-pool|pool|ordpool|-favgroup|favgroup|-fav|fav|ordfav|sub|md5|-rating|rating|-locked|locked|width|height|mpixels|ratio|score|favcount|filesize|source|-source|id|-id|date|age|order|limit|-status|status|tagcount|gentags|arttags|chartags|copytags|parent|-parent|child|pixiv_id|pixiv|search" SUBQUERY_METATAGS = "commenter|comm|noter|noteupdater|artcomm" attr_accessible :category, :as => [:moderator, :janitor, :gold, :member, :anonymous, :default, :builder, :admin]