Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update README with torrent file reference and note on how to import c…

…ables.csv
  • Loading branch information...
commit 54736794388d971cee6f7c205a91abac48c039a3 1 parent 2555b64
@Capncavedan authored
Showing with 12 additions and 2 deletions.
  1. +10 −1 README.markdown
  2. +2 −1  db/{leaks_importer.rb → import_cables.rb}
View
11 README.markdown
@@ -7,7 +7,16 @@ http://www.solrtutorial.com
http://sunspot.github.com
-Synonyms do not work out of the box! Edit `solr/conf/schema.xml` as reflected below:
+Wikileaks cables:
+
+Use torrent file WikiLeaks_uncensored_US_diplomatic_cables_(cables.csv).6644050.TPB.torrent
+
+Note that it is over 1.6 GB, so will take a while to download and also to impot if you choose to import all of it.
+
+It can be parsed with the db/import_cables.rb script; adjust the path within it to your cables.csv file, then open a rails console and use `load "db/import_cables.rb"`
+
+
+Synonyms are not enabled out of the box! Edit `solr/conf/schema.xml` as reflected below:
````
<fieldType name="text" class="solr.TextField" omitNorms="false">
View
3  db/leaks_importer.rb → db/import_cables.rb
@@ -2,7 +2,8 @@
require 'american_date'
require 'csv'
-data = File.read("/Users/danb/Downloads/cables.csv", 100 * 1024 *1024)
+
+data = File.read("/Users/danb/Downloads/cables.csv", 10 * 1024 *1024)
Cable.delete_all
i = 1
Please sign in to comment.
Something went wrong with that request. Please try again.