Versions Compared

Key

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

Introduction

This wiki page provides information about how to implement a customized search site with functionalities similar to http://beta.vivosearch.org/.

8/2013: Note that the code linked from this page is obsolete and is being redeveloped as presented at the 2013 VIVO Conference

Useful resources:

2011 Downloads

Setting up the applications

Dates from late 2011

1. Apache Solr

  • Unpack the downloaded Apache Solr file
  • Copy the files schema.xml and solrconfig.xml from /LinkedDataIndexer/solr to $APACHE_SOLR_HOME/example/solr/conf
  • Go to $APACHE_SOLR_HOME/example and run java -jar start.jar to start solr
  • Open http://localhost:8983/solr and check if solr is running

...

  • Go to the directory of LinkedDataIndexer
  • Copy the example file /src/main/scala/edu/cornell/indexbuilder/configurations/ExampleConfig.scala to your customized scala file (e.g. MyInstitutionTest.scala)
  • Modify the copied file from:

    No Format
    
    object ExampleConfig {
      val siteName = "Weill Cornell Medical College"
      val siteUrl = "http://vivo.med.cornell.edu"    
      val siteVivoVersion = VitroVersion.r1dot2
    
      val solrUrl = "http://exampleSolrServer.example.edu:8080/solr"
      val classUris = List( """http://vivoweb.org/ontology/core#Postdoc""" )
    }
    

to your customized institutional configurations:

No Format

object MyInstitutionTest {
  val siteName = "My Institution"
  val siteUrl = "http://vivo.myinstitution.edu"    
  val siteVivoVersion = VitroVersion.r1dot2

  val solrUrl = "http://localhost:8983/solr"
  val classUris = List( """http://vivoweb.org/ontology/core#Postdoc""" )
}

...