Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering Raising AttributeError only sometimes #563

Open
akeahey opened this issue Jul 2, 2020 · 1 comment
Open

Filtering Raising AttributeError only sometimes #563

akeahey opened this issue Jul 2, 2020 · 1 comment

Comments

@akeahey
Copy link

akeahey commented Jul 2, 2020

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

@beatobongco
Copy link

You are shadowing query

Use a different variable name for your QueryParser

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants