2011-11-07 66 views

回答

1

這是你可以上傳文件:

solr = RSolr.connect :url => 'http://your.solrserver.com:8983/solr' 
solr.post 'update/extract', :params => { 
     :'literal.id' => 'your-id', 
     :'fmap.content' => 'attr_content', 
     :'stream.file' => '/path/to/your/file/, 
     :uprefix => 'attr_f', 
     :commit => 'true' 
    }