Fix obsolete docs deletion
Related to dbnomics-fetchers/management#761 (closed)
Important points:
- commit posted documents so that they can be queried from the
delete_obsolete_documentsfunction - use
datetimevalues forindexed_at, so thatsolrqescapes them correctly - hack: build solr queries half with
solrq, half manually, because I could not make work the query with parentheses generated bysolrq - Do not process provider if there are no datasets to process: avoid updating the provider document for a no-op
Edited by Christophe Benz