allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [17/20] git commit: [#7257] no need to delete doc (solr overwrites by id)
Date Wed, 21 May 2014 14:45:05 GMT
[#7257] no need to delete doc (solr overwrites by id)


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/918f0bcf
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/918f0bcf
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/918f0bcf

Branch: refs/heads/master
Commit: 918f0bcf9c64eed828469043e975ecf045e165c6
Parents: 654621c
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Fri May 9 19:24:20 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed May 21 14:44:22 2014 +0000

----------------------------------------------------------------------
 Allura/allura/scripts/reindex_projects.py | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/918f0bcf/Allura/allura/scripts/reindex_projects.py
----------------------------------------------------------------------
diff --git a/Allura/allura/scripts/reindex_projects.py b/Allura/allura/scripts/reindex_projects.py
index daab641..89c447e 100644
--- a/Allura/allura/scripts/reindex_projects.py
+++ b/Allura/allura/scripts/reindex_projects.py
@@ -53,9 +53,6 @@ class ReindexProjects(ScriptTask):
                 if options.dry_run:
                     continue
                 c.project = p
-                # Clear index for this project
-                if not options.skip_solr_delete:
-                    g.solr.delete(q='project_id_s:%s' % p._id)
                 project_ids.append(p._id)
 
             try:
@@ -104,9 +101,6 @@ class ReindexProjects(ScriptTask):
         parser.add_argument('--dry-run', action='store_true', dest='dry_run',
                             default=False, help='Log names of projects that would be reindexed,
'
                             'but do not perform the actual reindex.')
-        parser.add_argument(
-            '--skip-solr-delete', action='store_true', dest='skip_solr_delete', default=False,
-            help='Skip clearing solr index.')
         parser.add_argument('--tasks', action='store_true', dest='tasks',
                             help='Run each individual index operation as a background task.')
         parser.add_argument(


Mime
View raw message