NASA - National Aeronautics and Space Administration

+ NASA Homepage
+ NASA en Español
+ Contact NASA
Go
Planetary Data System - Engineering Node Banner

Operation

This document describes how to operate the Search Core software. The following topics can be found in this document:

Note: The command-line examples in this section have been broken into multiple lines for readability. The commands should be reassembled into a single line prior to execution.

Tool Execution

Search Core can be executed in various ways. This section describes how to run the tool, as well as its behaviors and caveats.

Command-Line Options

The following table describes the command-line options available:

Command-Line OptionDescription
-a, --allRun Registry Extractor, Solr Indexer, and PDS Indexer. [default]
-d, --debugTurn on debugger.
-e, --extractorRun Registry Extractor.
-h, --helpDisplay usage.
-m,--query-maxSpecify the maximum number of registry values to be returned from query. (Default: 999999999)
-p, --pds-indexerRun PDS Indexer
-r, --registrySpecify Registry Service instance to query. (Default: http://pdsbeta.jpl.nasa.gov:8080/registry)
-s, --solr-indexerRun Solr Indexer
-V, --versionDisplay the release number and copyright information.

Execute Search Core Tool

This section demonstrates execution of the tool using the command-line options. The examples below execute the tool via the batch/shell script.

The Search Core Tool requires a Search Service Home directory to be specified prior to running the tool. This path is the directory that contains the Apache Solr WAR file. The following is the format for commands:

% search-core <search-service-home-path> [options]
        

The following command demonstrates how to run the Search Core Tool with a SEARCH_SERVICE_HOME=/apps/search-service and the default execution to run all components:

% search-core /apps/service-service
        

By default, the command above will run all components of the Search Core software and produce a Solr index from the Registry Service data. To run each component separately, they must be completed in the following order:

  1. The following command will run the Search Core Tool with a SEARCH_SERVICE_HOME=/apps/search-service and only run the Registry Extractor component:

    % search-core /apps/service-service -e
    	    
  2. The following command will run the Search Core Tool with a SEARCH_SERVICE_HOME=/apps/search-service and only run the Solr Indexer component:

    % search-core /apps/service-service -s
    	    
  3. The following command will run the Search Core Tool with a SEARCH_SERVICE_HOME=/apps/search-service and only run the PDS Indexer component:

    % search-core /apps/service-service -p
    	    

The following command demonstrates how to test the Search Core Tool with a SEARCH_SERVICE_HOME=/apps/search-service and only query 1000 products for indexing:

% search-core /apps/service-service -m 1000
        

By default, the Search Core tool runs against the Registry Service at http://pdsbeta:8080/registry. The following command demonstrates how to run the Search Core Tool and all its components against a Registry Service installed at http://localhost:8080/registry

% search-core /apps/service-service -r http://localhost:8080/registry
        

FirstGov Logo
+ Freedom of Information Act
+ NASA 2003 Strategic Plan
+ NASA Privacy Statement, Disclaimer, and
   Accessiblity Certification

+ Copyright/Image Use Policy
NASA Logo
Curator: Emily.S.Law
Webmaster: Maryia Sauchanka-Davis
NASA Official: William Knopf
Last Updated:
+ Comments and Questions