Difference between revisions of "User:Lindenb/Notebook/UMR915/2012/04/06"

From OpenWetWare
< User:Lindenb‎ | Notebook‎ | UMR915‎ | 2012‎ | 04
Jump to: navigation, search
(Apache SOLR)
(Apache SOLR)
Line 15: Line 15:
 
</pre>
 
</pre>
 
Edit ./apache-solr-3.5.0/example/solr/conf/schema.xml
 
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"/>
 +
  
  

Revision as of 00:25, 6 April 2012

Owwnotebook icon.png Project name <html><img src="/images/9/94/Report.png" border="0" /></html> Main project page
<html><img src="/images/c/c3/Resultset_previous.png" border="0" /></html>Previous entry<html>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</html>

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"/>


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