meilisearch search descr field configurable

This commit is contained in:
xiaomlove
2023-04-09 00:51:33 +08:00
parent fe49b6a2ba
commit 2c85edb1b3
13 changed files with 101 additions and 36 deletions
+11
View File
@@ -429,5 +429,16 @@ class NexusDB
}
public static function hasIndex($table, $indexName): bool
{
$results = self::select("show index from $table");
foreach ($results as $item) {
if ($item['Key_name'] == $indexName) {
return true;
}
}
return false;
}
}