I am trying to apply filter on whoosh results. When I apply filter without a python function, I get results. However, when I put filter in a python function, I get 'AttributeError: 'Term' object has no attribute 'Term'.
Please see the gist with example here: https://gist.github.com/akeahey/b6713a32cdff0ca2a58b63fdceab99be
I am trying to apply filter on whoosh results. When I apply filter without a python function, I get results. However, when I put filter in a python function, I get 'AttributeError: 'Term' object has no attribute 'Term'. Please see the gist with example here: https://gist.github.com/akeahey/b6713a32cdff0ca2a58b63fdceab99be