team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00089
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 282: Standardize TODO comments
------------------------------------------------------------
revno: 282
git commit: 173fb9c7b3b8ac692774fc60171063c10f3e2c8e
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Fri 2012-06-29 08:05:20 +0100
message:
Standardize TODO comments
modified:
src/alfanous/QueryProcessing.py
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous/QueryProcessing.py'
--- src/alfanous/QueryProcessing.py 2012-06-01 03:38:52 +0000
+++ src/alfanous/QueryProcessing.py 2012-06-29 07:05:20 +0000
@@ -19,15 +19,11 @@
'''
it contains specified query parsers , some linguistic operations
-@author: Assem Chelli
-@contact: assem.ch [at] gmail.com
-@license: AGPL
-
-@todo: Buckwalter/Other codings Search {bw! kutubo }
-@todo: Upgrading Tuple Search to Embeded Query Search {1! word="foo"}
-@todo: Smart-search : take the optimal choice with NLP!
-@todo: Synonyme-Antonyme Upgrade to related search {syn! fire }
-@bug: multifields
+TODO Buckwalter/Other codings Search {bw! kutubo }
+TODO Upgrading Tuple Search to Embeded Query Search {1! word="foo"}
+TODO Smart-search : take the optimal choice with NLP!
+TODO Synonyme-Antonyme Upgrade to related search {syn! fire }
+FIXME multifields
'''
from alfanous.Support.whoosh.qparser import QueryParser #, MultifieldParser
@@ -90,7 +86,7 @@
# Or, start with wildchars, and then either a mixture of word and wild chars
#, or the next token
wildstart = wildchars \
- +( OneOrMore( wordtoken + Optional( wildchars ) ) \
+ + ( OneOrMore( wordtoken + Optional( wildchars ) ) \
| FollowedBy( White() \
| StringEnd() ) )
wildcard = Group( Combine( wildmixed | wildstart ) ).setResultsName( "Wildcard" )
@@ -104,11 +100,11 @@
| Keyword( "To" ) \
| Keyword( "to" ) \
| Keyword( "TO" )
-
+
openstartrange = Group( Empty() ) \
+ Suppress( to + White() ) \
+ Group( rangeitem )
-
+
openendrange = Group( rangeitem ) \
+ Suppress( White() + to ) \
+ Group( Empty() )