File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ def reindex_organisations(context):
395
395
solr = pysolr .Solr (os .getenv ('CKAN_SOLR_URL' ), always_commit = True , timeout = 10 )
396
396
solr .ping ()
397
397
398
- existing_organisations = [r .get ('name' ) for r in solr .search ("*" , fq = "(site_id:dgu_organisations)" )]
398
+ existing_organisations = [r .get ('name' ) for r in solr .search ("*" , fq = "(site_id:dgu_organisations)" , rows = 3000 )]
399
399
organisations = []
400
400
counter = 0
401
401
@@ -426,12 +426,9 @@ def reindex_organisations(context):
426
426
if organisations :
427
427
solr .add (organisations )
428
428
429
- results = solr .search ("*" , fq = "(site_id:dgu_organisations)" , rows = 2000 )
429
+ results = solr .search ("*" , fq = "(site_id:dgu_organisations)" , rows = 3000 )
430
430
431
- print (f"Retrieved { len (results )} results" )
432
-
433
- for result in results :
434
- print (f"{ result .get ('title' )} - { result .get ('name' )} " )
431
+ print (f"Added { len (organisations )} organisations, total numer = { len (results )} " )
435
432
436
433
437
434
def run_command (command ):
You can’t perform that action at this time.
0 commit comments