alephdata / aleph

Search and browse documents and data; find the people and companies you look for.
http://docs.aleph.occrp.org
MIT License
2.01k stars 270 forks source link

Bulk loaded entites don't appear in collection #3854

Open terion-name opened 1 month ago

terion-name commented 1 month ago

I don't know if it is a bug or I am doing something wrong, but docs are very limited and I didn't see what is wrong and I'm just trial-n-erroring.

What I do: I load some data (got from external document analyzer) to a collection via REST API. Example:

[
  {
    "properties": {
      "name": [
        "Some Person"
      ]
    },
    "schema": "Person",
    "collection_id": 291,
    "id": "57bbeb49e12e95b416b4a7ae321313b8f3e82088"
  },
  {
    "properties": {
      "name": [
        "Another Person"
      ]
    },
    "schema": "Person",
    "collection_id": 291,
    "id": "d86a917787f6b10989c069dc9bad43e9663794f1"
  },
  {
    "properties": {
      "name": [
        "Some Address"
      ]
    },
    "schema": "Address",
    "collection_id": 291,
    "id": "57bbeb49e12e95b416b4a7ae321313b8f3e82088"
  },
]

And in result Address entities successfully appear in collection, but Person - not.

Снимок экрана 2024-08-23 в 16 57 04
catileptic commented 5 days ago

@terion-name you have a duplicated ID. "57bbeb49e12e95b416b4a7ae321313b8f3e82088" appears as an ID value for both the Person entity and the Address entity.