Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (10 sloc) 307 Bytes
require 'rubygems'
require 'mongo'
@db = Mongo::Connection.new.db('sample1')
@docs_coll = @db['documents']
@docs_coll.create_index([[:url, 1], [:user_id, 1]], :unique => true)
@sentences_coll = @db['sentences']
@tokens_coll = @db['tokens']
@docs_coll.remove
@sentences_coll.remove
@tokens_coll.remove
Something went wrong with that request. Please try again.