Commit 5402d08f authored by Guido van Rossum's avatar Guido van Rossum

Follow-up changes for complete globbing.

parent d04e5363
...@@ -46,8 +46,6 @@ class IIndex(Interface.Base): ...@@ -46,8 +46,6 @@ class IIndex(Interface.Base):
example, "foo*" represents the set of all words in the lexicon example, "foo*" represents the set of all words in the lexicon
starting with "foo". starting with "foo".
NOTE: Currently only a single trailing * is supported.
Return an IIBTree mapping docid to score. Return an IIBTree mapping docid to score.
""" """
......
...@@ -42,8 +42,6 @@ class ILexicon(Interface): ...@@ -42,8 +42,6 @@ class ILexicon(Interface):
The argument should be a single word using globbing syntax, The argument should be a single word using globbing syntax,
e.g. 'foo*' meaning anything starting with 'foo'. e.g. 'foo*' meaning anything starting with 'foo'.
NOTE: Currently only a single trailing * is supported.
Return the wids for all words in the lexicon that match the Return the wids for all words in the lexicon that match the
pattern. pattern.
""" """
......
...@@ -52,7 +52,7 @@ Summarizing the default operator rules: ...@@ -52,7 +52,7 @@ Summarizing the default operator rules:
- words connected by punctuation implies phrase search, e.g. ``foo-bar'' - words connected by punctuation implies phrase search, e.g. ``foo-bar''
- a leading hyphen implies NOT, e.g. ``foo -bar'' - a leading hyphen implies NOT, e.g. ``foo -bar''
- these can be combined, e.g. ``foo -"foo bar"'' or ``foo -foo-bar'' - these can be combined, e.g. ``foo -"foo bar"'' or ``foo -foo-bar''
- a trailing * means globbing (i.e. prefix search), e.g. ``foo*'' - * and ? are used for globbing (i.e. prefix search), e.g. ``foo*''
""" """
import re import re
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment