@app.route('/topListBySuburb/<term>/<suburbCode>/<field>/<size>/<startDate>/<endDate>', methods=['GET', 'OPTIONS'])
@crossdomain(origin='*')
def getTopList(term, suburbCode, field, size, startDate, endDate):
    return jsonify(indexer.getTopListBySuburb(term, suburbCode, field, size, startDate, endDate))
@app.route('/topListBySuburb/<term>/<suburbCode>/<field>/<size>/<startDate>/<endDate>', methods=['GET', 'OPTIONS'])
@crossdomain(origin='*')
def getTopList(term, suburbCode, field, size, startDate, endDate):
    return jsonify(indexer.getTopListBySuburb(term, suburbCode, field, size, startDate, endDate))