README is empty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
from pathlib import Path | |
import csv | |
from elasticsearch import Elasticsearch | |
from elasticsearch.exceptions import TransportError | |
from elasticsearch.helpers import bulk, streaming_bulk | |
parser = argparse.ArgumentParser(description='Simple upload of a CSV to Elasticsearch for analysis') | |
#group = parser.add_mutually_exclusive_group() |
README is empty
README is empty
README is empty
README is empty
README is empty
README is empty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Indexing with default settings (automatic index creating and type mapping definition -> default/plain highlighter) | |
curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '{ | |
"user" : "kimchy", | |
"post_date" : "2009-11-15T14:12:12", | |
"message" : "trying out Elastic and Search" | |
}' | |
curl -XPUT 'http://localhost:9200/twitter/tweet/2' -d '{ | |
"user" : "kimchy", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"index" : { | |
"analysis" : { | |
"filter" : { | |
"my_ngram" : { | |
"max_gram" : 20, | |
"min_gram" : 2, | |
"type" : "nGram" | |
}, | |
"my_snow" : { |
NewerOlder