We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.fielded
I am trying this code:
>>> from lucenequerybuilder import Q >>> Q("do*", wildcard=True).fielded
And then I get:
RuntimeError: maximum recursion depth exceeded
Same code works as expected in Python 2.7:
>>> from lucenequerybuilder import Q >>> Q("do*", wildcard=True).fielded False
The text was updated successfully, but these errors were encountered:
Thanks for the catch @versae - any interest in fixing it? :)
Sorry, something went wrong.
I think that the problem comes from this line:
# [...] @staticmethod def _has_field(val): if hasattr(val, '__iter__'): # <- HERE! In Python 3 't' always has '__iter__', I think return any(Q._has_field(t) for t in val) else: return hasattr(val, 'field') and val.field is not None
No branches or pull requests
I am trying this code:
And then I get:
Same code works as expected in Python 2.7:
The text was updated successfully, but these errors were encountered: