User:Lindenb/Notebook/UMR915/2012/04/06

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
(Apache SOLR)
(Apache SOLR)
Line 23: Line 23:
   <field name="go_definition" type="text_en" indexed="true" stored="true" multiValued="false"/>
   <field name="go_definition" type="text_en" indexed="true" stored="true" multiValued="false"/>
 +
start solr:
 +
 +
    cd apache-solr-3.5.0/example/example
 +
    java -jar start.jar
* download GO/RD from http://archive.geneontology.org/latest-termdb/go_daily-termdb.rdf-xml.gz
* download GO/RD from http://archive.geneontology.org/latest-termdb/go_daily-termdb.rdf-xml.gz
-
$ xsltproc --novalid ~/go2solr.xsl ~/go_daily-termdb.rdf-xml.gz > ~/jeter.xml
+
  $ xsltproc --novalid ~/go2solr.xsl ~/go_daily-termdb.rdf-xml.gz > ~/jeter.xml
 +
 
 +
index GO:
 +
 
 +
  ~/package/apache-solr-3.5.0/example/exampledocs$
 +
    $ du -hs ~/package/apache-solr-3.5.0/
 +
    136M /home/lindenb/package/apache-solr-3.5.0/
 +
    $ java -jar post.jar  ~/jeter.xml
 +
 
 +
<pre>SimplePostTool: version 1.4
 +
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
 +
SimplePostTool: POSTing file jeter.xml
 +
SimplePostTool: COMMITting Solr index changes..</pre>
 +
 
 +
 
 +
 
<!-- ##### DO NOT edit below this line unless you know what you are doing. ##### -->
<!-- ##### DO NOT edit below this line unless you know what you are doing. ##### -->

Revision as of 04:33, 6 April 2012

Project name Main project page
Previous entry      

Daily

Apache SOLR

tar xvfz apache-solr-3.5.0.tgz
rm apache-solr-3.5.0.tgz

Edit ./apache-solr-3.5.0/example/solr/conf/schema.xml

and add the following FIELD:

  <field name="go_accession" type="text_ws" indexed="true" stored="true" multiValued="false"/>
  <field name="go_name" type="string" indexed="true" stored="true" multiValued="false"/>
  <field name="go_synonym" type="string" indexed="true" stored="true" multiValued="true"/>
  <field name="go_definition" type="text_en" indexed="true" stored="true" multiValued="false"/>

start solr:

   cd apache-solr-3.5.0/example/example
   java -jar start.jar


  $ xsltproc --novalid ~/go2solr.xsl ~/go_daily-termdb.rdf-xml.gz > ~/jeter.xml

index GO:

  ~/package/apache-solr-3.5.0/example/exampledocs$
   $ du -hs ~/package/apache-solr-3.5.0/
   136M	/home/lindenb/package/apache-solr-3.5.0/
   $ java -jar post.jar  ~/jeter.xml
SimplePostTool: version 1.4
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file jeter.xml
SimplePostTool: COMMITting Solr index changes..





Personal tools