User:Lindenb/Notebook/UMR915/2012/04/06: Difference between revisions
From OpenWetWare
No edit summary |
|||
Line 16: | Line 16: | ||
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 | and add the following FIELDS: | ||
<field name="go_name" type="text_general" indexed="true" stored="true" multiValued="false"/> | |||
<field name="go_name" type=" | <field name="go_synonym" type="text_general" indexed="true" stored="true" multiValued="true"/> | ||
<field name="go_synonym" type=" | <field name="go_definition" type="text_general" indexed="true" stored="true" multiValued="false"/> | ||
<field name="go_definition" type=" | |||
start solr: | start solr: |
Revision as of 01:57, 6 April 2012
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> </html> |
DailyApache SOLRtar 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 FIELDS: <field name="go_name" type="text_general" indexed="true" stored="true" multiValued="false"/> <field name="go_synonym" type="text_general" indexed="true" stored="true" multiValued="true"/> <field name="go_definition" type="text_general" 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.. $ du -hs ~/package/apache-solr-3.5.0/ 153M /home/lindenb/package/apache-solr-3.5.0/
|