tools

APACHE SOLR

Install an Apache Solr 9.2.1 search platform for use with ORDS data.

The result will be a very basic, out-of-the-box installation for local use without any security hardening and therefore not suitable for deployment.

Requirements

  1. Linux Bash terminal
  2. Java >= 17
  3. cURL
  4. wget
  5. Local web server
  6. Web browser
  7. ORDS data csv file in the ords-tools/dat/ords folder

Set up

bash install.sh

The install script will

  1. Check for Solr package and download if not found.
  2. Extract contents.
  3. Copy the ORDS and test core configuration files to the Solr home directory.
  4. Start Solr and load the cores.
  5. Import the test data to the test core.
  6. Import the ORDS data to the ORDS core.

After installation

In a web browser, navigate to http://localhost:8983/solr and you should see the Solr dashboard.

If there is no “Core Selector” box, wait a few seconds and refresh page.

Commands

Start Solr

Linux

solr-9.2.1/bin/solr start

Windows Subsytem Linux (WSL)

solr-9.2.1/bin/solr start -Dsolr.jetty.host="0.0.0.0"

Stop Solr

solr-9.2.1/bin/solr stop

Usage

Standard Query Parser

Out of the box, Solr’s Standard Query Parser provides a wide variety of search handling functionality.

Boolean Operators

Wildcard Searches

Fuzzy matching

Proximity Searches

Range Searches

Boosting

Sub-Queries

Other parsers and complex handlers are available

Query Syntax and Parsers

Customised parsing

The test_lang core demonstrates more custom functionality to handle international characters and phonetic matching.

See core/data/README.md for details of the test_lang core and example queries.

Some of this functionality has been implemented in the ORDS core. Compare schema files for details.

Other useful functionality

Spell Checking

Faceting

Suggester

MoreLikeThis

To Do

  1. Implement spellchecking and synonyms demonstrations
  2. Language detection
  3. OpenNLP integration

System requirements

Installation

Github

Java versions