├── .gitignore ├── slides.pdf ├── slides.pptx ├── tutorial.pdf ├── scripts ├── cover_page_art.jpg ├── core_default.sh ├── to_pdf.sh └── cover_page.html ├── LICENSE ├── README.md ├── install_solr_jdk.md └── tutorial.md /.gitignore: -------------------------------------------------------------------------------- 1 | tmp/ 2 | schedule.md 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /slides.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hectorcorrea/solr-for-newbies/HEAD/slides.pdf -------------------------------------------------------------------------------- /slides.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hectorcorrea/solr-for-newbies/HEAD/slides.pptx -------------------------------------------------------------------------------- /tutorial.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hectorcorrea/solr-for-newbies/HEAD/tutorial.pdf -------------------------------------------------------------------------------- /scripts/cover_page_art.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hectorcorrea/solr-for-newbies/HEAD/scripts/cover_page_art.jpg -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This work is licensed under the 2 | Creative Commons Attribution 4.0 International License. 3 | To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/. -------------------------------------------------------------------------------- /scripts/core_default.sh: -------------------------------------------------------------------------------- 1 | # Recreates the bibdata core empty 2 | # (use this if you installed Solr locally) 3 | solr delete -c bibdata 4 | solr create -c bibdata 5 | 6 | # Recreates the bibdata core empty 7 | # (use this if you installed Solr via a Docker container) 8 | docker exec -it solr-container solr delete -c bibdata 9 | docker exec -it solr-container solr create_core -c bibdata 10 | docker exec -it solr-container post -c bibdata books.json 11 | 12 | 13 | # Other docker commands 14 | # docker stop solr-container 15 | # docker rm solr-container 16 | # 17 | # docker system prune -a -f 18 | -------------------------------------------------------------------------------- /scripts/to_pdf.sh: -------------------------------------------------------------------------------- 1 | # Creates a PDF version of tutorial.md 2 | # via pandoc and wkhtmltopdf. 3 | 4 | # Convert the markdown file to HTML 5 | # https://pandoc.org/MANUAL.html 6 | # 7 | pandoc ../tutorial.md \ 8 | -f markdown \ 9 | -t html -s -o tutorial.html \ 10 | --toc \ 11 | --include-before-body=cover_page.html \ 12 | --metadata pagetitle="Solr for newbies workshop" 13 | 14 | # Convert the HTML file to PDF 15 | # https://wkhtmltopdf.org/usage/wkhtmltopdf.txt 16 | # (use the installer from wkhtmltopdf.org, not from Homebrew) 17 | # 18 | wkhtmltopdf \ 19 | --footer-line \ 20 | --footer-left "Solr for newbies workshop" \ 21 | --footer-right "[page]/[toPage]" \ 22 | --footer-spacing 20 \ 23 | --margin-top 15 \ 24 | --margin-left 15 \ 25 | --margin-bottom 30 \ 26 | --margin-right 15 \ 27 | --dpi 120 \ 28 | --enable-local-file-access \ 29 | tutorial.html ../tutorial.pdf 30 | 31 | # Other settings that I tried 32 | # 33 | # --dpi 200 \ 34 | # --zoom 1.3 \ 35 | # --disable-smart-shrinking \ 36 | # --print-media-type \ 37 | # --lowquality \ 38 | # --page-size Letter \ 39 | # 40 | 41 | rm tutorial.html 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Solr for newbies workshop 2 | 3 | The repository contains the materials for the **Solr for newbies** workshop. 4 | 5 | File [tutorial.md](https://github.com/hectorcorrea/solr-for-newbies/blob/main/tutorial.md) has most of the material that we will cover during the workshop. In order to have a textual record of the commands to execute (along with their parameters and output) all the examples in this file are shown as executed via command line utilities like cURL. However, during the workshop we will use a combination of approaches, some steps will be executed through the command line while others will be done through the admin web page that Solr provides out of the box. 6 | 7 | File **tutorial.pdf** has the same content as tutorial.md but in PDF format and it's [downloadable]( https://github.com/hectorcorrea/solr-for-newbies/raw/main/tutorial.pdf). 8 | 9 | File **slides.pdf** contains the slides used in the workshop to support the material in tutorial.md. 10 | 11 | File **books.json** has the sample data that we will use during the workshop. 12 | 13 | File **install_solr_jdk.md** has instructions on how to install Solr directly on your machine (instead of using a Docker container). 14 | 15 | Folder `scripts/` has a few scripts that can be used to automate the steps of adding documents or fields to the Solr core used in the tutorial. These scrips just bundle the steps documented in tutorial.md. 16 | -------------------------------------------------------------------------------- /scripts/cover_page.html: -------------------------------------------------------------------------------- 1 | 6 | 39 | 40 |
43 |