[Zope] ZCTextIndex - prefix wildcards not supported?

Small Business Services toolkit at magma.ca
Thu Nov 20 12:38:24 EST 2003


Why are wildcards '?' and '*' not supported at the beginning of search terms in ZCTextIndex?  It would be very useful to search for terms using '*someterm'.

In the cvs for ZCTextIndex, Lexicon.py 
(http://cvs.zope.org/Products/ZCTextIndex/Lexicon.py?annotate=1.17.10.2)

the code raises an exception for wildcards at the beginning of search terms (see line 113) and a related comment says"

111                                  # The pattern starts with a globbing character.
112                                  # This is too efficient, so we raise an exception.

Why is this 'too efficient"?


Jonathan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zope.org/pipermail/zope/attachments/20031120/656d12b3/attachment.html


More information about the Zope mailing list