]> git.wh0rd.org Git - tt-rss.git/commitdiff
split related title to separate define _NGRAM_TITLE_RELATED_THRESHOLD
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 9 Jul 2012 17:44:37 +0000 (21:44 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 9 Jul 2012 17:44:37 +0000 (21:44 +0400)
include/functions.php

index 06939c636e958647c7b95e2edadcaa62c3fbf871..c98de2613f20c094ec04afa85559f1e6abfb635c 100644 (file)
 
                        // N-grams
 
-                       if (DB_TYPE == "pgsql" and defined('_NGRAM_TITLE_DUPLICATE_THRESHOLD')) {
+                       if (DB_TYPE == "pgsql" and defined('_NGRAM_TITLE_RELATED_THRESHOLD')) {
 
                                $ngram_result = db_query($link, "SELECT id,title FROM
                                                ttrss_entries,ttrss_user_entries
                                        WHERE ref_id = id AND updated >= NOW() - INTERVAL '7 day'
-                                               AND similarity(title, '$title_escaped') >= "._NGRAM_TITLE_DUPLICATE_THRESHOLD."
+                                               AND similarity(title, '$title_escaped') >= "._NGRAM_TITLE_RELATED_THRESHOLD."
                                                AND title != '$title_escaped'
                                                AND owner_uid = $owner_uid");