From 87c0c8d7ed4eb334dbd084d0ab0040589071b111 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 20 Feb 2022 12:06:43 -0500 Subject: dbstore: shrink CVE FTS index (test index from 120M to 86M) by removing all IDs except cve_id, concatenating reference tags, and removing severities --- dbstore/cvesearchrow.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbstore/cvesearchrow.go') diff --git a/dbstore/cvesearchrow.go b/dbstore/cvesearchrow.go index 4128347..91920b9 100644 --- a/dbstore/cvesearchrow.go +++ b/dbstore/cvesearchrow.go @@ -6,8 +6,8 @@ import ( // CveSearch() result type CveSearchRow struct { - Id int64 `json:"cve_id"` // internal database CVE ID - CveId feed.CveId `json:"nvd_cve_id"` // NVD CVE ID + Id int64 `json:"cve_id"` // CVE database ID + NvdId feed.CveId `json:"nvd_id"` // NVD CVE ID Description string `json:"description"` // CVE description (english) V3BaseScore feed.Score `json:"v3_base_score"` // CVSSv3 base score V3Severity feed.Severity `json:"v3_severity"` // CVSSv3 severity -- cgit v1.2.3