If there a way using Whoosh to return the documents that have a field matching exactly the terms in a query?
For example, say I have a schema that has a autograph
field that has three possible values; Autograph
, Partial autograph
, and No Autograph
. If I do a standard query autograph:autograph
, I get all the records. Because the term autograph
is in all records. I have tried doing something like Term('autograph', 'autograph')
and applying that to the filter
key word argument for the search
function, but I end up getting the same results.
Am I doing something wrong?