def pre_search(cs, term, planlove):
    """
    This hook is called before a (quicklove or regular) search, and is
    passed the same arguments as is the search function:

     - the search ``term``
     - ``planlove``, a boolean of whether to restrict search to planlove.

    """
    pass
