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.
- Cloning...
$> git clone https://github.com/reactome/search-indexer.git
$> cd search-indexer
- 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.
Automatic way to updated SolR Configuration files, mainly schema.xml (requires new indexing) and solrconfig.xml
- 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.
- SolR 6.x.x properly installed using install-solr.sh
- You should be able to access http://[serverip]:[port]/solr
- Neo4j Graph Database + Reactome Graph Database
- Maven Setup: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
- Escape special characters if they are present in the password e.g not4shar\&, use backslash (\).
- 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
sudo service solr [stop|start|restart|status]
💻 Console
$> mvn clean package
$> java -jar target/search-indexer-icon-exec.jar --solrPw xxx --iconsDir /path1 --ehldDir /path2