Skip to content

jamescarr/mongodb-elasticsearch-spike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Elastic Search Spike

This is my spike of using elasticsearch+mongodb during the inaugural HackCoMo meetup.

Setup

You will need

  • MongoDB 2.0.0 or greater
  • node.js 0.6.6 or greater
  • coffee-script
  • elasticsearch

For testing purposes I imported the enron email corpus, you can find it here. I had already imported this into my mongodb instance before the meetup so I saved some time there. You can import it by running

mongorestore -d enron dump/enron-mail

And as always, running npm install from the root of this project will install all the dependencies needed to run it.

Startup elastic search. You also already have mongodb running, don't you?

Running It

First run

coffee spike.coffee

to populate elasticsearch with 10,000 enron emails. Now run

coffee getit.coffee

To run a silly little commandline app to search em. Ctrl+C escapes.

More to come.

About

A spike from HackCoMo night to try elasticsearch+mongodb out

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published