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/09 23:42:35 UTC
[15/18] 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/1a26412e
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/1a26412e
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/1a26412e
Branch: refs/heads/db/7257
Commit: 1a26412ede940ae027e989ab8118123cc2c35939
Parents: 1bcf04b
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Fri May 9 19:24:20 2014 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri May 9 19:24:20 2014 +0000
----------------------------------------------------------------------
Allura/allura/scripts/reindex_projects.py | 6 ------
1 file changed, 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/1a26412e/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(