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
75706f5c
Commit
75706f5c
authored
Jul 03, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made highlighting more tolerant of bad data.
parent
044aba2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
lib/python/SearchIndex/InvertedIndex.py
lib/python/SearchIndex/InvertedIndex.py
+10
-5
No files found.
lib/python/SearchIndex/InvertedIndex.py
View file @
75706f5c
...
@@ -30,7 +30,7 @@ Example usage:
...
@@ -30,7 +30,7 @@ Example usage:
print i['blah']
print i['blah']
$Id: InvertedIndex.py,v 1.5
1 1997/07/01 14:15:35
jim Exp $'''
$Id: InvertedIndex.py,v 1.5
2 1997/07/03 13:51:33
jim Exp $'''
# Copyright
# Copyright
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
@@ -82,7 +82,7 @@ $Id: InvertedIndex.py,v 1.51 1997/07/01 14:15:35 jim Exp $'''
...
@@ -82,7 +82,7 @@ $Id: InvertedIndex.py,v 1.51 1997/07/01 14:15:35 jim Exp $'''
# (540) 371-6909
# (540) 371-6909
#
#
#
#
__version__
=
'$Revision: 1.5
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
2
$'
[
11
:
-
2
]
import
regex
,
string
,
copy
import
regex
,
string
,
copy
...
@@ -743,14 +743,19 @@ class Index:
...
@@ -743,14 +743,19 @@ class Index:
for
position
in
positions
:
for
position
in
positions
:
if
lpos
!=
position
:
if
lpos
!=
position
:
lpos
=
position
lpos
=
position
start
,
end
=
ws
.
pos
(
position
)
try
:
text
=
(
text
[:
start
]
+
before
+
text
[
start
:
end
]
+
start
,
end
=
ws
.
pos
(
position
)
after
+
text
[
end
:])
text
=
(
text
[:
start
]
+
before
+
text
[
start
:
end
]
+
after
+
text
[
end
:])
except
:
pass
return
text
return
text
############################################################################
############################################################################
# $Log: InvertedIndex.py,v $
# $Log: InvertedIndex.py,v $
# Revision 1.52 1997/07/03 13:51:33 jim
# Made highlighting more tolerant of bad data.
#
# Revision 1.51 1997/07/01 14:15:35 jim
# Revision 1.51 1997/07/01 14:15:35 jim
# Fixed bug in merge map.
# Fixed bug in merge map.
#
#
...
...
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