def search_elastic(): """ Searches the instance. Request URL Parameter: - **query** """ query = request.args.get("query") search_results = query_index(query) return jsonify(search_results)
def search_elastic(): query = request.args.get("query") search_results = query_index(Config.INDEX_NAME, query) return jsonify(search_results)