]> git.wh0rd.org - tt-rss.git/commitdiff
gen-search-idx: show how many entries are left
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 4 Aug 2015 11:31:42 +0000 (14:31 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 4 Aug 2015 11:31:42 +0000 (14:31 +0300)
update.php

index 8fc28973f6dd3ce2dd60a741e47aa4b68f554480..5a082279e47add7fbd6852d5dc558d101b2c1562 100755 (executable)
        if (isset($options["gen-search-idx"])) {
                echo "Generating search index (stemming set to English)...\n";
 
-               $result = db_query("SELECT COUNT(id) AS count FROM ttrss_entries");
+               $result = db_query("SELECT COUNT(id) AS count FROM ttrss_entries WHERE tsvector_combined IS NULL");
                $count = db_fetch_result($result, 0, "count");
 
-               print "Total entries: $count.\n";
+               print "Entries to process: $count.\n";
 
                $offset = 0;
                $limit = 1000;