BRANCH sthpw_schema_fix:

  ensured if the search is in the main sthpw project, it will rely on the related type to retrieve the schema to determine relationship