Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How is Solr created and configured?

The VIVO distribution includes a copy of Solr WAR file. When VIVO is installed the Solr WAR file is deployed to Tomcat as a web applicationSolr is an external component to VIVO and must be installed separately. See "Configure and Start Solr" for detailed installation instructions.

The behavior of Solr depends extensively on its configuration files. These are stored in a directory that is called the Solr Home directory. In the standard VIVO installation, this is the solr sub-directory in the VIVO Home directory. When VIVO is installed, the Solr configuration files are copied to the Solr Home directory. When VIVO runs, the Solr search index is built inside the Solr Home directory.If you are installing VIVO in a servlet container other than Tomcat, or if you are installing Solr in a separate servlet container, you will need to tell Solr how to find its home directory. See the instructions in Building a VIVO distribution for other servlet containers.

The search index

What is in the index?

...

When an individual is added, edited, or delete deleted through VIVO's user interface, Solr is given the new information and the index is updated.

...

In any of these circumstances, the solution is to log in login to VIVO as an administrator, navigate to the Site Administration page and click on Rebuild search index.

...

Custom queries can be added to any file in the vivo-home/rdf/display/everytime directory (or any other file directory read by VIVO during startup). Using searchIndexerConfigurationVivo.n3 as a template, create a query that returns the data you wish to add to the search index. For example, if you wanted to create a search field for tracking open access publications you flag the content with a custom data property:

...

How does VIVO contact Solr?

Note

In progress

...

  • Authorization tests, now obsolete

...

VIVO must be configured to communicate with Solr. This is accomplished by updating the "runtime.properties" to point to the URL of Solr. More installation details can be found in the "Configure and Start Solr" documentation.