Global Search

Prev Next

Overview

Global Search adds a search bar to the Validatar menu header. It finds tests, jobs, labels, and metadata objects (data sources, schemas, tables, and columns), including their custom field values. You can search by more than the object name: by data source, by the SQL script in a test, by who created a test, and more.

Global Search is an add-on. If Settings > Configuration > Global Search describes the add-on instead of showing settings, contact sales@validatar.com to add it.

Global Search keeps its index in Apache Solr, an open-source search engine.

  • Validatar Cloud: Validatar runs Solr for you. There is nothing to install, and the Global Search page shows indexing statistics only.
  • Validatar Server: you run your own Solr instance and connect Validatar to it. The rest of this article covers that setup.
Search bar display

The search bar does not appear in the Validatar header until Global Search is configured.

Before you install Solr

Validatar's search configuration is built for Solr 9. Use Solr 9.11.0, the latest Solr 9 release, which runs on Java. Use Java 17 or 21.

Solr runs only as securely as the Java underneath it. Apply Java security updates when your Java vendor releases them, then restart Solr. Java4Shell (CVE-2026-114938) is a recent Java flaw that affects Solr.

Solr 9 accepts connections only from the server it runs on. The simplest setup puts Solr on the Validatar Server host. To run it on a different server, also follow Running Solr on a separate server, at the end of this article.

Install Solr on Linux

If you installed Validatar Server with an install script from Install Guide - Linux, the script already installed Java, Solr, and the Validatar search files. Skip to Configure Global Search in Validatar, below.

To install Solr yourself:

  1. Install Java 17 or 21 from your Linux distribution's packages or from Eclipse Temurin.

  2. Download Solr and install it as a service:

    wget https://dlcdn.apache.org/solr/solr/9.11.0/solr-9.11.0.tgz
    tar -xzf solr-9.11.0.tgz
    sudo ./solr-9.11.0/bin/install_solr_service.sh solr-9.11.0.tgz -n
    sudo systemctl start solr
    
  3. Add the Validatar search files. They go in a folder named after the core, inside Solr's data folder:

    sudo mkdir /var/solr/data/validatar
    wget https://admin.cloud.validatar.com/assets/releases/2026-1-1/solr-root.zip
    sudo unzip solr-root.zip -d /var/solr/data/validatar
    sudo chown -R solr:solr /var/solr/data/validatar
    

The service starts Solr automatically when the server restarts.

Install Solr on Windows

  1. Install Java 17 or 21. Eclipse Temurin is a free option: in its installer, turn on Set JAVA_HOME variable. If you use a different Java, create a JAVA_HOME system environment variable that points to its folder.

  2. Download solr-9.11.0.tgz from the Apache Solr downloads page. Solr 9 is released only as a .tgz file, which the tar command built into Windows 10, Windows Server 2019, and later can extract. In a Command Prompt, from the folder that holds the download:

    tar -xzf solr-9.11.0.tgz -C C:\
    
  3. Start Solr:

    cd C:\solr-9.11.0
    bin\solr.cmd start
    
  4. Open http://localhost:8983 in a browser on that server. The Solr Admin page should load.

  5. Add the Validatar search files. Create the folder C:\solr-9.11.0\server\solr\validatar, download solr-root.zip, and extract it into that folder. The result is C:\solr-9.11.0\server\solr\validatar\conf.

Server restart

Solr does not start again on its own after Windows restarts. Create a Windows Task Scheduler task with the trigger At startup that runs C:\solr-9.11.0\bin\solr.cmd start.

Configure Global Search in Validatar

  1. In Validatar, go to Settings > Configuration > Global Search.
  2. Under Solr Settings, enter:
    • Solr Endpoint URL: http://localhost:8983/solr, or the address of your Solr server.
    • Solr Username and Solr Password: the Solr account, if your Solr instance requires a login. Otherwise leave them empty.
    • Solr Instance Type: Standalone.
    • Solr Core Name: validatar, the folder name you used for the search files.
  3. Click Validate Settings. A green check next to Solr Endpoint URL means Validatar reached Solr. A green check next to Solr Core Name means the core exists.
  4. On a new setup the core does not exist yet, so click Create Core. Validatar creates the core from the search files you added.
  5. Under Indexing Settings, select Enable Indexing. Indexing Delay sets how many seconds indexing waits before it looks for new content. The default suits most instances.
  6. Click Save.

Indexing starts a few seconds later. To watch its progress, click the refresh button next to Indexing Statistics.

Indexing Statistics with the percentage of each object type indexed{height="" width=""}

Indexing statistics

Indexing includes archived and disabled objects in the Validatar database.

Several Validatar instances on one Solr

To use one Solr instance for more than one Validatar instance, such as development and production, give each instance its own core. Add a separate copy of the search files under a different folder name, such as validatar-dev, and enter that name as the Solr Core Name in that instance.

SolrCloud

If you run Solr in SolrCloud mode, select SolrCloud as the Solr Instance Type and enter the collection name. Validatar does not create SolrCloud collections: create the collection from the Validatar search files in solr-root.zip first.

Running Solr on a separate server

When Solr runs on a different server from Validatar Server, Solr must accept connections from the network, so it needs a login and limits on who can reach it.

  1. Turn on Solr authentication. Apache's Securing Solr guide describes Basic Authentication and HTTPS. Enter the Solr account in Solr Username and Solr Password in Validatar.
  2. Let Solr listen on the network: set SOLR_JETTY_HOST="0.0.0.0" in /etc/default/solr.in.sh on Linux, or set SOLR_JETTY_HOST=0.0.0.0 in bin\solr.in.cmd on Windows. Restart Solr.
  3. In the Solr server's firewall, allow the Solr port (8983 by default) only from the Validatar Server host.
  4. In Validatar, set Solr Endpoint URL to the Solr server's address, for example https://solr-server:8984/solr when Solr uses HTTPS on port 8984.