The word "will" is one of the 'stop words' that are very common and
removed by default. You can change this behavior.
When you make a schema, you can choose how you want the text to be
analyzed. By default, a 'StandardAnalyzer' is used, something like the
following.
import whoosh
from whoosh.analysis import StandardAnalyzer
from whoosh.fields import *
schema = Schema(content=TEXT(analyzer=StandardAnalyzer()))
The StandardAnalyzer has a stoplist (i.e. list of words to ignore) as
follows:
{'from', 'when', 'us', 'your', 'yet', 'are', 'if', 'an', 'is', 'on',
'may', 'and', 'with', 'have', 'as', 'of', 'to', 'or', 'you', 'for',
'will', 'in', 'we', 'tbd', 'at', 'a', 'by', 'it', 'that', 'this', 'not',
'be', 'the', 'can'}
You could possibly use a different analyzer, or perhaps remove/alter the
stoplist in the standard analyzer.
- DLD