Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

WIP > Importer readme

  • Loading branch information...
commit d610591495335a9b7992c83da51d876fc7a460ed 1 parent eea90dd
@karmi authored
Showing with 26 additions and 0 deletions.
  1. +26 −0 lib/tire/importer/README.markdown
View
26 lib/tire/importer/README.markdown
@@ -0,0 +1,26 @@
+The source data should have one JSON document per line:
+
+ {"foo" : "bar"}
+ {"moo" : "bam"}
+
+Usage:
+
+In your Gemfile:
+
+ source :rubygems
+
+ gem 'tire', git: 'git://github.com/karmi/tire.git'
+ gem 'tire-contrib', git: 'git://github.com/karmi/tire-contrib.git'
+
+In your Rakefile:
+
+ require 'tire'
+ require 'tire-contrib'
+ require 'tire/importer/tasks'
+
+Then:
+
+ bundle install
+
+ cat path/to/source/files/*.json | \
+ time bundle exec rake tire:import:file INDEX=myindex URL=http://localhost:9200
Please sign in to comment.
Something went wrong with that request. Please try again.