[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG/queryparser - queryparser.py:1.1.2.7

Andreas Jung andreas@digicool.com
Wed, 6 Feb 2002 09:02:15 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG/queryparser
In directory cvs.zope.org:/tmp/cvs-serv15199

Modified Files:
      Tag: ajung-textindexng-branch
	queryparser.py 
Log Message:
added wildcards


=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/queryparser/queryparser.py 1.1.2.6 => 1.1.2.7 ===
     ANDREGEX       = 'and'
     ORREGEX        = 'or'
-    STRREGEX       = '[a-zA-Z]*'
+    STRREGEX       = '[a-zA-Z\?\*]*'
     OPENPREGEX     = r'('
     CLOSEPREGEX    = r')'
 
@@ -43,7 +43,7 @@
 
         self.DeclareTerminals()
         self.BindRules()
-        
+
     
     def DeclareTerminals(self):
         self.TextIndexG.Addterm("openp",  self.OPENPREGEX,  self.addOpenParens)
@@ -60,8 +60,6 @@
         self.TextIndexG.DoParse1(query, {} )
         res = self.getResult()
 
-        print res
-       
         return res