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
a6fe813d
Commit
a6fe813d
authored
Jun 23, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in merge when first thing merged had 'UnindexedData'.
Note that this "should" never occur.
parent
0b3790ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
lib/python/SearchIndex/InvertedIndex.py
lib/python/SearchIndex/InvertedIndex.py
+15
-3
No files found.
lib/python/SearchIndex/InvertedIndex.py
View file @
a6fe813d
...
...
@@ -30,7 +30,7 @@ Example usage:
print i['blah']
$Id: InvertedIndex.py,v 1.
49 1997/06/16 13:37:53
jim Exp $'''
$Id: InvertedIndex.py,v 1.
50 1997/06/23 19:31:42
jim Exp $'''
# Copyright
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
...
@@ -82,7 +82,7 @@ $Id: InvertedIndex.py,v 1.49 1997/06/16 13:37:53 jim Exp $'''
# (540) 371-6909
#
#
__version__
=
'$Revision: 1.
49
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
50
$'
[
11
:
-
2
]
import
regex
,
string
,
copy
...
...
@@ -621,7 +621,7 @@ class Index:
else
:
s
=
WordSequence
(
s
,
self
.
synstop
)
for
key
in
s
:
if
(
key
[
0
]
==
'"'
):
if
(
key
[
0
]
==
'
\
"
'
):
self
.
remove_document
(
doc_key
,
key
)
else
:
self
.
rmdoc
(
doc_key
,
key
)
...
...
@@ -641,6 +641,14 @@ class Index:
except
:
o
=
None
if
o
is
None
:
for
id
in
v
.
keys
():
d
=
v
[
id
]
if
d
==
UnindexData
:
# Remove this doc
try
:
del
v
[
id
]
except
:
pass
my_map
[
key
]
=
v
continue
...
...
@@ -742,6 +750,10 @@ class Index:
############################################################################
# $Log: InvertedIndex.py,v $
# Revision 1.50 1997/06/23 19:31:42 jim
# Fixed bug in merge when first thing merged had 'UnindexedData'.
# Note that this "should" never occur.
#
# Revision 1.49 1997/06/16 13:37:53 jim
# Added logic to work with IntermediateIndex.
#
...
...
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