@app.route('/topListByCity/<field>/<size>/<startDate>/<endDate>', methods=['GET', 'OPTIONS'])
@crossdomain(origin='*')
def getAllTopListByCity(field, size, startDate, endDate):
    return jsonify(indexer.getAllTopListsByCity(field, size, startDate, endDate))
@app.route('/topListByCity/<field>/<size>/<startDate>/<endDate>', methods=['GET', 'OPTIONS'])
@crossdomain(origin='*')
def getAllTopListByCity(field, size, startDate, endDate):
    return jsonify(indexer.getAllTopListsByCity(field, size, startDate, endDate))