def less(compare_item):
    """
    Ensures the filtered item is less than the compare_item

    result < compare_item
    :return: Callback to be used by the query search.
    """

    def callback(item):
        return item < compare_item

    return callback