I'm working through the Whoosh Quick start guide, and everything seems to be working except that I can't quite replicate the results in the guide.
I'm up to the bit about the Searcher object and when I run the code
print(results[0])
I don't get back an actual result if a match is found, I simply get back
<Hit {}>
whereas in the tutorial, the output is
{"title": "Second try", "path": "/b", "icon": "/icons/sheep.png"}
which is obviously quite a bit more helpful!
Any idea what I might be doing wrong?
Figured it out.
For those who run into the same problem, I messed up by not explicitly stating that any of the items in my schema were stored - i.e. (stored=True).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With