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
e1c844d5
Commit
e1c844d5
authored
Dec 23, 1996
by
chris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checked out by Chris for testing/editing.
parent
d669d576
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
lib/python/SearchIndex/InvertedIndex.py
lib/python/SearchIndex/InvertedIndex.py
+8
-5
No files found.
lib/python/SearchIndex/InvertedIndex.py
View file @
e1c844d5
...
...
@@ -32,7 +32,7 @@ Example usage:
InvertedIndex provides three types of indexes: one non-persistent
index, Index, and two persistent indexes, Persistent and Transactional.
$Id: InvertedIndex.py,v 1.
8 1996/12/13 13:53:11 jim
Exp $'''
$Id: InvertedIndex.py,v 1.
9 1996/12/23 21:54:10 chris
Exp $'''
# Copyright
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
...
@@ -84,6 +84,9 @@ $Id: InvertedIndex.py,v 1.8 1996/12/13 13:53:11 jim Exp $'''
# (540) 371-6909
#
# $Log: InvertedIndex.py,v $
# Revision 1.9 1996/12/23 21:54:10 chris
# Checked out by Chris for testing/editing.
#
# Revision 1.8 1996/12/13 13:53:11 jim
# Checked in so I could edit.
#
...
...
@@ -113,7 +116,7 @@ $Id: InvertedIndex.py,v 1.8 1996/12/13 13:53:11 jim Exp $'''
#
#
#
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
import
regex
,
regsub
,
string
,
marshal
...
...
@@ -299,7 +302,7 @@ class Index:
Indexing is performed using the index() method.
Searching is performed using the Index object's mapping
Searching is performed using the Index object
\
'
s mapping
behaviour.
Example usage:
...
...
@@ -323,7 +326,7 @@ class Index:
# perform a test search
print i['blah']
'''
'''
#'
list_class
=
ResultList
...
...
@@ -410,7 +413,7 @@ class Index:
def
__getitem__
(
self
,
key
):
'''
\
'''
Get the ResultList objects for the inverted key, key, sorted by
frequency.
...
...
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