Skip to content

Get XML metadata into the dataset view #5505

Description

@rshewitt

User Story

In order to ensure documents can be converted to ts_vector, datagov wants to investigate why certain documents are incompatible.

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

  • GIVEN a json document with invalid characters preventing search vectorization
    WHEN a solution is found
    THEN the document can be converted to ts_vector
    [AND optionally another verifiable outcome]

Background

  • creating the "dataset" materialized view includes converting dcatus docs to ts_vector types.
  • 188 transformed ISO docs on dev contain the character "<" which postgres can't convert. Here's an example description "NOAA Central Library: <3 > v.; ill. (some col.), maps; 28 cm" which throws an error.

Security Considerations (required)

[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]

Sketch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Harvest-RunnerHarvest Source Processing for Harvesting 2.0

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions