python - Whoosh strict exact phrase matches with special characters -


i'm using whoosh index 100k+ documents because want run many literal phrase queries special characters such "a" vancouver island or !action pact!.

i've created index using:

schema = schema(path=id(stored=true), content=text(analyzer=analysis.standardanalyzer(stoplist=none))) 

and i've tried running searches using phraseas query, , using spannear2.

neither return correct matches. not want results similar !action pact!, want match if text contains !action pact!, word word, special character special character, including spaces.


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -