You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/05/21 16:45:05 UTC
[17/20] git commit: [#7257] no need to delete doc (solr overwrites by
id)
[#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 <db...@slashdotmedia.com>
Authored: Fri May 9 19:24:20 2014 +0000
Committer: Dave Brondsema <db...@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(