{"id":18952521,"url":"https://github.com/simonwhitaker/bard-a-bing","last_synced_at":"2026-03-29T11:30:17.337Z","repository":{"id":137107383,"uuid":"605038864","full_name":"simonwhitaker/bard-a-bing","owner":"simonwhitaker","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-22T21:52:36.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-01T02:41:04.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonwhitaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-22T10:08:27.000Z","updated_at":"2023-02-22T13:45:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"78e46900-21a3-4fcb-b2dc-551b1c91b291","html_url":"https://github.com/simonwhitaker/bard-a-bing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwhitaker%2Fbard-a-bing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwhitaker%2Fbard-a-bing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwhitaker%2Fbard-a-bing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwhitaker%2Fbard-a-bing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonwhitaker","download_url":"https://codeload.github.com/simonwhitaker/bard-a-bing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239952598,"owners_count":19723922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T13:33:48.860Z","updated_at":"2026-03-29T11:30:17.264Z","avatar_url":"https://github.com/simonwhitaker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bard-a-Bing!\n\nA search engine for Shakespeare sonnets, powered by [Meilisearch](https://www.meilisearch.com/).\n\n## Getting started\n\n1. Generate a local JSON document containing the Shakespeare sonnets as per-line data elements:\n\n    ```command\n    curl -s https://ocw.mit.edu/ans7870/6/6.006/s08/lecturenotes/files/t8.shakespeare.txt \\\n        | ./pre-process.py \u003e sonnets.json\n    ```\n\n2. Run a Meilisearch instance locally using docker compose:\n\n    ```command\n    docker compose up -d\n    ```\n\n3. Load the documents into your search index:\n\n    ```command\n    curl \\\n        -X POST 'http://localhost:7700/indexes/sonnets/documents?primaryKey=id' \\\n        -H 'Content-Type: application/json' \\\n        --data-binary @sonnets.json\n    ```\n\n4. Open http://localhost:7700 and search! Or query using cURL or (my favourite) [HTTPie](https://httpie.io/), like this:\n\n    ```command\n    http --body localhost:7700/indexes/sonnets/search q=compare+thee limit:=1\n    ```\n\n    Which returns:\n\n    ```json\n    {\n        \"estimatedTotalHits\": 1,\n        \"hits\": [\n            {\n                \"id\": 239,\n                \"line_number\": 1,\n                \"sonnet_number\": 18,\n                \"text\": \"Shall I compare thee to a summer's day?\"\n            }\n        ],\n        \"limit\": 1,\n        \"offset\": 0,\n        \"processingTimeMs\": 0,\n        \"query\": \"compare+thee\"\n    }\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwhitaker%2Fbard-a-bing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonwhitaker%2Fbard-a-bing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwhitaker%2Fbard-a-bing/lists"}