Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c111ee97
Commit
c111ee97
authored
Aug 03, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged fix to make 'and not' operators case-insensitive from 2.2 branch
parent
8eb5e8d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/SearchIndex/UnTextIndex.py
lib/python/SearchIndex/UnTextIndex.py
+5
-2
No files found.
lib/python/SearchIndex/UnTextIndex.py
View file @
c111ee97
...
@@ -92,7 +92,7 @@ is no longer known.
...
@@ -92,7 +92,7 @@ is no longer known.
"""
"""
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
from
Globals
import
Persistent
from
Globals
import
Persistent
import
BTree
,
IIBTree
,
IOBTree
,
OIBTree
import
BTree
,
IIBTree
,
IOBTree
,
OIBTree
...
@@ -459,7 +459,10 @@ class UnTextIndex(Persistent, Implicit):
...
@@ -459,7 +459,10 @@ class UnTextIndex(Persistent, Implicit):
"""
"""
# First replace any occurences of " and not " with " andnot "
# First replace any occurences of " and not " with " andnot "
s
=
ts_regex
.
gsub
(
'[%s]+and[%s]*not[%s]+'
%
(
ws
*
3
),
' andnot '
,
s
)
s
=
ts_regex
.
gsub
(
'[%s]+[aA][nN][dD][%s]*[nN][oO][tT][%s]+'
%
(
ws
*
3
),
' andnot '
,
s
)
# do some parsing
# do some parsing
q
=
parse
(
s
)
q
=
parse
(
s
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment