Search for ingested wellbore ID to avoid duplicate wellbore record ID
Currently, user is allowed to create a new wellbore record based on the LAS information.
However, there are cases where the same wellbore contains multiple well log files. In this scenario, we do not want to create multiple wellbores that are the same.
This issue addresses the scenario described above by using search API prior to creating a new wellbore record.
- Parse LAS for well name
- Run search API (api/search/v2/query) to check for ingested Wellbore with a body. E.g. Searching for Wellbore name NPD-2105.
{
"kind": "*:*:master-data--Wellbore:*",
"query": "data.FacilityName:\"NPD-2105\"",
"limit": 100
}
- If wellbore already exists, uses that existing wellbore record ID for the welllog reference.
- If search returns null, create a new wellbore record ID.
Edited by Chad Leong