diff --git a/app/Http/Controllers/API/SearchController.php b/app/Http/Controllers/API/SearchController.php
index 681c9e67..f4dd4ff8 100644
--- a/app/Http/Controllers/API/SearchController.php
+++ b/app/Http/Controllers/API/SearchController.php
@@ -156,7 +156,7 @@ public function search(Request $request)
$offset;
} elseif ($queryType == 'inchi') {
$statement =
- "select id, COUNT(*) OVER () from molecules where standard_inchi LIKE '%".
+ "select id, COUNT(*) OVER () from molecules WHERE identifier NOTNULL AND standard_inchi LIKE '%".
$query.
"%' limit ".
$limit.
@@ -164,7 +164,7 @@ public function search(Request $request)
$offset;
} elseif ($queryType == 'inchikey') {
$statement =
- "select id, COUNT(*) OVER () from molecules where standard_inchi_key LIKE '%".
+ "select id, COUNT(*) OVER () from molecules WHERE identifier NOTNULL AND standard_inchi_key LIKE '%".
$query.
"%' limit ".
$limit.
@@ -257,7 +257,7 @@ public function search(Request $request)
if ($query) {
$query = str_replace("'", "''", $query);
$statement =
- "select id, COUNT(*) OVER () from molecules WHERE (\"name\"::TEXT ILIKE '%".
+ "select id, COUNT(*) OVER () from molecules WHERE identifier NOTNULL AND (\"name\"::TEXT ILIKE '%".
$query.
"%') OR (\"synonyms\"::TEXT ILIKE '%".
$query.
@@ -294,7 +294,7 @@ public function search(Request $request)
if ($ids != '') {
$statement =
- 'SELECT * FROM molecules WHERE ID IN ('.
+ 'SELECT * FROM molecules WHERE identifier NOTNULL AND ID IN ('.
implode(
',',
collect($hits)
diff --git a/resources/js/Pages/Study/About.vue b/resources/js/Pages/Study/About.vue
index 83844b94..a169bf5b 100644
--- a/resources/js/Pages/Study/About.vue
+++ b/resources/js/Pages/Study/About.vue
@@ -284,13 +284,11 @@