Giter Club home page Giter Club logo

Comments (1)

aldenstpage avatar aldenstpage commented on July 28, 2024

@pa-w I set up the new Elasticsearch replicator to migrate this column over.

curl -i 'localhost:9200/image/_search?q=pg_id:9619372&pretty=true'

          ...
          ...
          "foreign_landing_url": "http:\/\/www.metmuseum.org\/art\/collection\/search\/71211",
          "removed_from_source": false,
          "meta_data": {
            "date": "18th century",
            "image": "http:\/\/images.metmuseum.org\/CRDImages\/as\/web-large\/DP15698.jpg",
            "title": "Piece",
            "medium": "Silk \/ Compound weave",
            "period": "Edo period (1615\\u20131868)",
            "source": "http:\/\/www.metmuseum.org\/art\/collection\/search\/71211",
            "culture": "Japan",
            "license": "\/publicdomain\/zero\/1.0\/",
            "date_era": "A.D. 1600\\u20131800",
            "dimensions": "6 1\/2 \\xd7 1 1\/8 in. (16.5 \\xd7 2.9 cm)",
            "credit_line": "Gift of Kihei Hattori, in memory of his father, Kihei Hattori, 1920",
            "description": "",
            "classification": "Textiles-Woven",
            "accession_number": "20.148.222",
            "geographic_location": "Asia,Japan",
            "object_type_material": "Silk,Textiles,Woven"
           }
         ...
         ...

This should let you query documents by century like you wanted, with the caveat that there is no standardization on the date format (e.g. this example has "date": "18th century" but others instead have ca.1715 or late 13th\\u201314th century). The best way to address that is probably to clean it up and standardize it somewhere in the ETL pipeline before it ends up in Postgres.

I still need to stand up the replicator in our staging environment, so you won't see these changes quite yet.

from cccatalog-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.