Skip to content

opensyllabus/flask-elasticsearch

 
 

Repository files navigation

An Elasticsearch connector for Flask.

Flask-Elasticsearch should be used in the following way:

from flask import Flask
from flask.ext.elasticsearch import Elasticsearch

app = Flask(__name__)
app.config.from_pyfile('config.cfg')
es = Elasticsearch(app)

or:

es = Elasticsearch()
app = create_app('config.cfg')
es.init_app(app)

and later:

@app.route('/docs')
def docs():
    conn = es.connection
    conn.search(...)

About

A Flask extension providing an Elasticsearch connector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%