Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Renamed Index.py to CosineIndex.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed May 16, 2002
1 parent cd46f42 commit 7e6cdff
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CosineIndex.py
Expand Up @@ -43,7 +43,7 @@ def scaled_int(f, scale=SCALE_FACTOR):
# expensive.
return int(f * scale + 0.5)

class Index(Persistent):
class CosineIndex(Persistent):

__implements__ = IIndex

Expand Down
2 changes: 1 addition & 1 deletion OkapiIndex.py
Expand Up @@ -46,7 +46,7 @@ def scaled_int(f, scale=SCALE_FACTOR):
# expensive.
return int(f * scale + 0.5)

class Index(Persistent):
class OkapiIndex(Persistent):

__implements__ = IIndex

Expand Down
2 changes: 1 addition & 1 deletion tests/mhindex.py
Expand Up @@ -22,7 +22,7 @@
from BTrees.OIBTree import OIBTree

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 CaseNormalizer, StopWordRemover
from Products.ZCTextIndex.QueryParser import QueryParser
Expand Down
4 changes: 2 additions & 2 deletions tests/testIndex.py
Expand Up @@ -15,8 +15,8 @@
from unittest import TestCase, TestSuite, main, makeSuite

from Products.ZCTextIndex.Lexicon import Lexicon, Splitter
from Products.ZCTextIndex.CosineIndex import Index as CosineIndex
from Products.ZCTextIndex.OkapiIndex import Index as OkapiIndex
from Products.ZCTextIndex.CosineIndex import CosineIndex
from Products.ZCTextIndex.OkapiIndex import OkapiIndex

# The cosine and Okapi indices have the same public interfaces, but these
# tests access internal attributes, and those aren't identical.
Expand Down
4 changes: 2 additions & 2 deletions tests/testZCTextIndex.py
Expand Up @@ -2,8 +2,8 @@
from Products.ZCTextIndex.tests \
import testIndex, testQueryEngine, testQueryParser
from Products.ZCTextIndex.CosineIndex import scaled_int, SCALE_FACTOR
from Products.ZCTextIndex.CosineIndex import Index as CosineIndex
from Products.ZCTextIndex.OkapiIndex import Index as OkapiIndex
from Products.ZCTextIndex.CosineIndex import CosineIndex
from Products.ZCTextIndex.OkapiIndex import OkapiIndex
from Products.ZCTextIndex.Lexicon import Lexicon, Splitter
from Products.ZCTextIndex.Lexicon import CaseNormalizer, StopWordRemover
from Products.ZCTextIndex.QueryParser import QueryParser
Expand Down

0 comments on commit 7e6cdff

Please sign in to comment.