Revision 55213
Added by Sandro La Bruzzo almost 5 years ago
modules/dataciteExporter/eu/dnetlib/exporter/dataciteExporter.py | ||
---|---|---|
41 | 41 |
def scan_index(timestamp=None, active=True, scroll_id=None, page_size= None): |
42 | 42 |
if not page_size: |
43 | 43 |
page_size = 1000 |
44 |
es = Elasticsearch(hosts=['ip-90-147-167-25.ct1.garrservices.it','ip-90-147-167-26.ct1.garrservices.it','ip-90-147-167-27.ct1.garrservices.it', 'ip-90-147-167-28.ct1.garrservices.it'], timeout=1000)
|
|
44 |
es = Elasticsearch(hosts=['192.168.100.70','192.168.100.71','192.168.100.72', '192.168.100.73'], timeout=1000)
|
|
45 | 45 |
s = Search(using=es, index='datacite').query(Q('match', attributes__isActive=True)) |
46 | 46 |
if timestamp: |
47 | 47 |
print ("APPLICO FILTRO ", timestamp) |
Also available in: Unified diff
changed ip address