mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Boost the list of stop words, by merging in the little list Jeremy
just checked into Zope's ZCTextIndex branch. This reduces the size of the .chm file by about 100KB.
This commit is contained in:
parent
b9032018ff
commit
a3b0b298e6
1 changed files with 9 additions and 7 deletions
|
@ -117,13 +117,15 @@ object_sitemap = '''\
|
|||
# Note that "and", "or", "not" and "near" are operators in the search
|
||||
# language, so no point indexing them even if we wanted to.
|
||||
stop_list = '''
|
||||
a an and
|
||||
is
|
||||
near
|
||||
not
|
||||
of
|
||||
or
|
||||
the
|
||||
a and are as at
|
||||
be but by
|
||||
for
|
||||
if in into is it
|
||||
near no not
|
||||
of on or
|
||||
such
|
||||
that the their then there these they this to
|
||||
was will with
|
||||
'''
|
||||
|
||||
# s is a string or None. If None or empty, return None. Else tack '.html'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue