search by elasticsearch [doing]

This commit is contained in:
pycook
2019-11-18 20:02:25 +08:00
parent 2205c359b8
commit 4ec3b310e4
17 changed files with 256 additions and 22 deletions

View File

@@ -9,6 +9,7 @@ from flask_login import LoginManager
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from api.lib.utils import ESHandler
from api.lib.utils import RedisHandler
bcrypt = Bcrypt()
@@ -19,3 +20,4 @@ cache = Cache()
celery = Celery()
cors = CORS(supports_credentials=True)
rd = RedisHandler(prefix="CMDB_CI") # TODO
es = ESHandler()