Skip to content

Conversation

hkong-mitre
Copy link
Contributor

Closes Issue #19, #20 but with scope expanded to include all date fields

Summary

Search can be done using dates, and it will return all CVEs that contains that date in any date field. Search terms can be of the format:
YYYY-MM-DD
YYYY-MM-DDTHH:MM:SSZ
YYYY-MM-DDTHH:MM:SS
YYYY-MM-DDTHH:MM:SS.mmmZ
YYYY-MM-DDTHH:MM:SS+HH:MM

Known Problems

  • does not correctly support YYYY, YYY-MM
  • does not correctly handle a string and date search
  • does not correctly handle date ranges
  • does not correctly handle 2+ different dates separated by spaces
  • does not support dates in a non-date field (this is correct behavior)

Important Changes

  • SearchQueryBuilder now handles query terms of the forms above by differentiating between
  • all standard date fields are searched

Testing

Steps to manually test updated functionality, if possible

  • npm run test

…ranges, which require very different query methods than strings
…only either date or string). It has 1 problem in that the results are larger than what the developer console returns, and also that it is only searching containers.cna.providerMetadata.dateUpdated and containers.cna.timeline.time. Note change in devel.jsonc search index
…ing that day instead of defaulting to a date range of that date to current time
@hkong-mitre hkong-mitre self-assigned this Sep 30, 2025
@hkong-mitre hkong-mitre merged commit 2768085 into dev Oct 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants