Skip to content

reactome/search-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search Indexer

What is Reactome Search ?

Reactome Search is a project that optimizes the queries in Reactome Website. Based on Apache Lucene, Reactome Graph Database is fully indexed by Apache SolR. SolR is versatile, it's configured and parametrized to face Reactome needs and requirements, delivering a high performance and accurate result list. The Search Project is split into 'Indexer' and 'Search':

  • Indexer: query Reactome Graph Database and index PhysicalEntities, Event and Person into SolR documents. Icons are also indexed.
  • Search: Spring MVC Application which queries SolR documents in order to optimize the searching for Reactome Pathway Browser.

Table of Contents

Download

  • Cloning...
$> git clone https://github.com/reactome/search-indexer.git

$> cd search-indexer

Installing SolR

⚠️ Execute script as root.

  • You may need to specify a Solr Password. Please write it down - this is mandatory for reaching out the Solr Console Site.
  • Replace the default arguments if necessary...
  • Escape special characters if they are present in the password e.g not4shar\&, use backslash (\).
$> sudo ./scripts/install-solr.sh solrpass=not2share
  • Help
$> sudo ./scripts/install-solr.sh help
  • To validate Apache SolR installation reach out the URL http://[serverip]:[port]/solr (must ask for Basic Authentication). Please provide the user and password configured in the setup-solr.sh script
  • You're now able to run the Reactome Indexer. Follow next steps.

Updating SolR Configuration Files

Automatic way to updated SolR Configuration files, mainly schema.xml (requires new indexing) and solrconfig.xml

⚠️ Execute script as root.

  • You may need to specify a Solr Password used during Solr Installation
  • Replace the default arguments if necessary...
  • Escape special characters if they are present in the password e.g not4shar\&, use backslash (\).
$> sudo ./scripts/update-solr-config.sh solrpass=not2share
  • Help
$> sudo ./scripts/update-solr-config.sh help
  • To verify the new configuration in SolR, go to http://[serverip]:[port]/solr (must ask for Basic Authentication).

    • Select your SolR Core
    • Under core, click on Files > select one of the files and confirm that your changes have been applied.
  • You're now able to run the Reactome Indexer.

Running Reactome Indexer

✅ Pre-Requirements

Indexer default configuration:

  • Data
  • Ebeye.xml
  • Icons + Mapping Files
  • Website Sitemap files
  • Target Swissprot (Search term)
$> ./scripts/run-indexer.sh neo4jpass=not2share solrpass=not4you iconsdir=/home/reactome/icons ehlddir=/home/reactome/ehlds [email protected]

Note: if maildest isn't provided no notification will be sent

Note 2: if iconsdir AND ehlddir aren't provided icons won't be indexed

  • Help / extra options
$> sudo ./scripts/run-indexer.sh help

SolR

Useful commands

sudo service solr [stop|start|restart|status]

Solr Console

💻 Console

Indexing Icons only

$> mvn clean package

$> java -jar target/search-indexer-icon-exec.jar --solrPw xxx --iconsDir /path1 --ehldDir /path2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published