Skip to content

Search for variable #31

Description

@kyao

See API document here: https://datamart-upload.readthedocs.io/en/latest/api/

Implement GET /metadata/variable end point for keyword search.

Given list of keywords, return list of variable metadata.

Use PostgresSQL fuzzysearch on the the dataset name, dataset description, variable name and variable description.

The result should be a JSON object that includes simple information that a GUI may use to display to a user:

  • variable name
  • variable description
  • variable id
  • dataset short name (used as id)
  • dataset name

If we have time, the result should also include:

  • time span (if defined in the database)
  • number of points
  • precision (if defined for the database)

If time allows, the search should have a bit of smarts so that if a country or countries are provided or detected in the keywords, the countries should be wikified and the search should filter out the variable if it is not available for the requested country or countries.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions