Skip to content

Instantly share code, notes, and snippets.

View mateuslinhares's full-sized avatar

Mateus Linhares mateuslinhares

View GitHub Profile
@mateuslinhares
mateuslinhares / ES_Stemming.rb
Created March 26, 2012 18:04 — forked from hohyon-ryu/ES_Stemming.rb
Stemming for ElasticSearch (Portuguese example)
# Script to test stemming for ElasticSearch. Working now!!
# Reference: http://stackoverflow.com/questions/4981001/why-elasticsearch-is-not-finding-my-term
require 'rubygems'
require 'net/http'
require 'yaml'
require 'json'
# kill the index
delete = Net::HTTP::Delete.new("/willindex")