Skip to content Skip to sidebar Skip to footer

My Output Is Not Giving The Documents Matched For The Query

I have a folder called pads in which there are six notepad documents with some text in each of them. Am trying to build a whoosh code that will return the appropriate document for

Solution 1:

Actually, you need to place print(results) inside the "with" code block as shown below.

with ix.searcher() as searcher:
    results = searcher.search(q, limit=None)
    print(results)

Post a Comment for "My Output Is Not Giving The Documents Matched For The Query"