Commit 183e0170 authored by katharina.berger's avatar katharina.berger

add retracted to facet search

parent caf3efcf
......@@ -21,7 +21,7 @@ def query_for_facet(log, index_nodes, master_solr_dict, instance_id, fields):
remote_slave_solr_url = 'http://esgf-data.dkrz.de:%s/solr' % master_solr_dict[index_node]
else:
remote_slave_solr_url = 'https://%s/solr' % index_node
query1 = ('replica:false&instance_id:%s' % instance_id)
query1 = ('replica:false&retracted:false&instance_id:%s' % instance_id)
docs1 = query_solr(log, query1, fields, solr_url=remote_slave_solr_url, solr_core='datasets')
for field in fields:
return_list.append(docs1[0][field])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment