Quick Start - The 5 Steps
At the end of this chapter, you will have a web app up and running with the mechanical-pencils collection indexed and ready to search, sort, and facet on the URL:
http://localhost:8181/panl-results-viewer/
|
IMPORTANT: This is the Quick Start guide for Solr version 9, if you are using a previous version of Panl, ensure that you have the correct Panl release package and that you refer to the Setting up a Solr 7 or 8 server section in the Appendix for how to index data for those versions. |
Image: The In-Build Panl Results Viewer web app, with the mechanical pencils CaFUPs shown
|
IMPORTANT: Throughout the book the filesystem paths are described using the *NIX nomenclature of a forward slash '/' between the directories, rather than the backslash of Microsoft Windows systems '\'. So please take care when copying the commands. |
- Download Solr and Panl
Download the latest release of Synapticloop Panl - this book is using the solr-panl-9-1.2.0 version:
https://github.com/synapticloop/panl/releases
Download the latest version of Apache Solr - this book is using the 9.6.1-slim version:
https://solr.apache.org/downloads.html
|
WARNING: Solr version 9.7.0 has changed command line options, and some of the in-built scripts are not fully working and there are changes required to the passed in parameters in these examples.
If you are using Solr version 9.7.0 then you will need to replace the command line option of -noprompt to --no-prompt when creating the initial Solr cloud example. |
A Note On Running The Commands
These are all of the commands for either Microsoft Windows or *NIX operating systems (Linux/Apple Macintosh). Should there be any errors - see the 'Getting Started' section for a more in-depth explanation and approach.
|
IMPORTANT: You will need to replace the |
Windows Commands
|
IMPORTANT: Each of the commands - either Windows or *NIX must be run on a single line - watch out for ↩ continuations. |
- Create an example cloud instance
This requires no interaction, will use the default setup, two replicas, and two shards under the 'example' cloud node.
Command(s) |
cd SOLR_INSTALL_DIRECTORY
bin\solr start -e cloud -noprompt |
- Create the mechanical pencils collection
This will create and set up the mechanical pencil collection and schema so that the data can be indexed.
Command(s) |
cd SOLR_INSTALL_DIRECTORY
bin\solr create -c mechanical-pencils -d ↩ |
- Index the mechanical pencils data
This will index the included sample mechanical pencil data into the Solr instance in the mechanical-pencils collection.
Command(s) |
cd SOLR_INSTALL_DIRECTORY
bin\solr post -c mechanical-pencils ↩ |
- Start the Panl Server
This will start the server and be ready to accept requests.
Command(s) |
cd PANL_INSTALL_DIRECTORY
bin\panl.bat -properties ↩ |
- Browse the in-built Panl Results Viewer web app
Open the link http://localhost:8181/panl-results-viewer/ in your favourite browser, choose a collection/FieldSet and search, facet, sort, paginate and view the results
Need help understanding what the Panl server is doing?
Open the link http://localhost:8181/panl-results-explainer/ in your favourite browser, choose a collection and fieldset, paste the canonical URL path from the results viewer and an explanation of the parsing and decoding and the configuration will be presented.
*NIX Commands
|
IMPORTANT: Each of the commands - either Windows or *NIX must be run on a single line - watch out for ↩ continuations. |
- Create an example cloud instance
This requires no interaction, will use the default setup, two replicas, and two shards under the 'example' cloud node.
Command(s) |
cd SOLR_INSTALL_DIRECTORY
bin/solr start -e cloud -noprompt |
- Create the mechanical pencils collection
This will create and set up the mechanical pencil collection and schema so that the data can be indexed.
Command(s) |
cd SOLR_INSTALL_DIRECTORY
bin/solr create -c mechanical-pencils -d ↩ |
- Index the mechanical pencils data
This will index the included sample mechanical pencil data into the Solr instance in the mechanical-pencils collection.
Command(s) |
cd SOLR_INSTALL_DIRECTORY
bin/solr post -c mechanical-pencils ↩ |
- Start the Panl Server
This will start the server and be ready to accept requests.
Command(s) |
cd PANL_INSTALL_DIRECTORY
bin/panl -properties ↩ |
- Browse the in-built Panl Results Viewer web app
Open the link http://localhost:8181/panl-results-viewer/ in your favourite browser, choose a collection/FieldSet and search, facet, sort, paginate and view the results
Need help understanding what the Panl server is doing?
Open the link http://localhost:8181/panl-results-explainer/ in your favourite browser, choose a collection and fieldset, paste the canonical URL path from the results viewer and an explanation of the parsing and decoding and the configuration will be presented.
Something Went Wrong?
Work your way through the next section, or have a look at the When Something Goes Wrong section.
Next Steps
For indexing additional data, see the Additional Data section, for deeper understanding of how to set up a new collection and search page from scratch see the A Walkthrough Example - The Book Store section.
~ ~ ~ * ~ ~ ~