Skip to content

Instantly share code, notes, and snippets.

View michellebeard's full-sized avatar

Michelle Beard michellebeard

View GitHub Profile

Keybase proof

I hereby claim:

  • I am michellebeard on github.
  • I am michellebeard (https://keybase.io/michellebeard) on keybase.
  • I have a public key ASBe9OrG4oL_E2CrdeKDsJmst6eZyQRnf1mZ2kDH3cHucQo

To claim this, I am signing this object:

@michellebeard
michellebeard / es-attach-full.py
Last active January 11, 2017 21:25 — forked from stevehanson/es-attach-full.py
Interactive Python script to recursively index files in directory tree to elasticSearch using the elasticsearch-mapper-attachments (https://github.com/elasticsearch/elasticsearch-mapper-attachments) plugin to index files (pdf, docx, html, etc).
# Update to support Elasticsearch 5.1.1 with ingest-attachment plugin
# Also includeded support for HTTP Basic Authentication
# Fixed bug in base64 encoding were newline was introduced
import os
# Constants
HOST = 'http://localhost:9200'
INDEX = 'demo'
TYPE = 'attachment'