def lib_search_solr():
    strict = request.query.strict
    if strict.lower() in ['0', 'false', 'off']:
        strict = False
    args = dict(
        query=unquote(request.query.query[:255]),
        page=int(request.query.page) if request.query.page else 0,
        strict=bool(strict),
        # perpage=int(request.query.perpage) if request.query.perpage else 0
    )
    return finalize_json_response(api.LibSearchSolrAPI, args)
dataset/ETHPy150Open platformio/platformio-api/platformio_api/web.py/lib_search_solr/original