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
025db164
Commit
025db164
authored
May 16, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed Index.py to CosineIndex.py
parent
9892eae5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
lib/python/Products/ZCTextIndex/CosineIndex.py
lib/python/Products/ZCTextIndex/CosineIndex.py
+1
-1
lib/python/Products/ZCTextIndex/OkapiIndex.py
lib/python/Products/ZCTextIndex/OkapiIndex.py
+1
-1
lib/python/Products/ZCTextIndex/tests/mhindex.py
lib/python/Products/ZCTextIndex/tests/mhindex.py
+1
-1
lib/python/Products/ZCTextIndex/tests/testIndex.py
lib/python/Products/ZCTextIndex/tests/testIndex.py
+2
-2
lib/python/Products/ZCTextIndex/tests/testZCTextIndex.py
lib/python/Products/ZCTextIndex/tests/testZCTextIndex.py
+2
-2
No files found.
lib/python/Products/ZCTextIndex/CosineIndex.py
View file @
025db164
...
@@ -43,7 +43,7 @@ def scaled_int(f, scale=SCALE_FACTOR):
...
@@ -43,7 +43,7 @@ def scaled_int(f, scale=SCALE_FACTOR):
# expensive.
# expensive.
return
int
(
f
*
scale
+
0.5
)
return
int
(
f
*
scale
+
0.5
)
class
Index
(
Persistent
):
class
Cosine
Index
(
Persistent
):
__implements__
=
IIndex
__implements__
=
IIndex
...
...
lib/python/Products/ZCTextIndex/OkapiIndex.py
View file @
025db164
...
@@ -46,7 +46,7 @@ def scaled_int(f, scale=SCALE_FACTOR):
...
@@ -46,7 +46,7 @@ def scaled_int(f, scale=SCALE_FACTOR):
# expensive.
# expensive.
return
int
(
f
*
scale
+
0.5
)
return
int
(
f
*
scale
+
0.5
)
class
Index
(
Persistent
):
class
Okapi
Index
(
Persistent
):
__implements__
=
IIndex
__implements__
=
IIndex
...
...
lib/python/Products/ZCTextIndex/tests/mhindex.py
View file @
025db164
...
@@ -22,7 +22,7 @@ from BTrees.IOBTree import IOBTree
...
@@ -22,7 +22,7 @@ from BTrees.IOBTree import IOBTree
from
BTrees.OIBTree
import
OIBTree
from
BTrees.OIBTree
import
OIBTree
from
Products.ZCTextIndex.NBest
import
NBest
from
Products.ZCTextIndex.NBest
import
NBest
from
Products.ZCTextIndex.OkapiIndex
import
Index
from
Products.ZCTextIndex.OkapiIndex
import
OkapiIndex
as
Index
from
Products.ZCTextIndex.Lexicon
import
Lexicon
,
Splitter
from
Products.ZCTextIndex.Lexicon
import
Lexicon
,
Splitter
from
Products.ZCTextIndex.Lexicon
import
CaseNormalizer
,
StopWordRemover
from
Products.ZCTextIndex.Lexicon
import
CaseNormalizer
,
StopWordRemover
from
Products.ZCTextIndex.QueryParser
import
QueryParser
from
Products.ZCTextIndex.QueryParser
import
QueryParser
...
...
lib/python/Products/ZCTextIndex/tests/testIndex.py
View file @
025db164
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
from
unittest
import
TestCase
,
TestSuite
,
main
,
makeSuite
from
unittest
import
TestCase
,
TestSuite
,
main
,
makeSuite
from
Products.ZCTextIndex.Lexicon
import
Lexicon
,
Splitter
from
Products.ZCTextIndex.Lexicon
import
Lexicon
,
Splitter
from
Products.ZCTextIndex.CosineIndex
import
Index
as
CosineIndex
from
Products.ZCTextIndex.CosineIndex
import
CosineIndex
from
Products.ZCTextIndex.OkapiIndex
import
Index
as
OkapiIndex
from
Products.ZCTextIndex.OkapiIndex
import
OkapiIndex
# The cosine and Okapi indices have the same public interfaces, but these
# The cosine and Okapi indices have the same public interfaces, but these
# tests access internal attributes, and those aren't identical.
# tests access internal attributes, and those aren't identical.
...
...
lib/python/Products/ZCTextIndex/tests/testZCTextIndex.py
View file @
025db164
...
@@ -2,8 +2,8 @@ from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex
...
@@ -2,8 +2,8 @@ from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex
from
Products.ZCTextIndex.tests
\
from
Products.ZCTextIndex.tests
\
import
testIndex
,
testQueryEngine
,
testQueryParser
import
testIndex
,
testQueryEngine
,
testQueryParser
from
Products.ZCTextIndex.CosineIndex
import
scaled_int
,
SCALE_FACTOR
from
Products.ZCTextIndex.CosineIndex
import
scaled_int
,
SCALE_FACTOR
from
Products.ZCTextIndex.CosineIndex
import
Index
as
CosineIndex
from
Products.ZCTextIndex.CosineIndex
import
CosineIndex
from
Products.ZCTextIndex.OkapiIndex
import
Index
as
OkapiIndex
from
Products.ZCTextIndex.OkapiIndex
import
OkapiIndex
from
Products.ZCTextIndex.Lexicon
import
Lexicon
,
Splitter
from
Products.ZCTextIndex.Lexicon
import
Lexicon
,
Splitter
from
Products.ZCTextIndex.Lexicon
import
CaseNormalizer
,
StopWordRemover
from
Products.ZCTextIndex.Lexicon
import
CaseNormalizer
,
StopWordRemover
from
Products.ZCTextIndex.QueryParser
import
QueryParser
from
Products.ZCTextIndex.QueryParser
import
QueryParser
...
...
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