Closed mmagaldi-eng closed 3 years ago
About note 2, an example of upsert for elastic is the following:
elastic.update(index=index, id=article, body={
"doc": {"about": about, "topic": topic, "mentions": mentions},
"upsert": {"about": about, "topic": topic, "mentions": mentions, "identifier": article}
})
where, after the "doc" part you put the fields for the partial update and after the "upsert" part you put what is to be indexed if the document is missing.
About note 1, I have updated the code for offline topics and offline media.
About notes 3 and 4, the offline fusion score was updated together with the online part.
The process takes into account that there can be multiple concurrent calls for the same document at the same time.
@macagari @tavitto16 when your services are ready, report here so that we can start an actual test
The offline process modifications are online.
As agreed in the last technical call about the offline process, to streamline ingestion as well as development activities, we will remove the aggregation steps (and relative constraints), writing directly on ES:
All analyzers will write directly in the fdg_article index, creating or updating the JSON document using the “upsert” element. More specifically, analyzers steps are:
Notes