Commit 025db164 authored by Guido van Rossum's avatar Guido van Rossum

Renamed Index.py to CosineIndex.py

parent 9892eae5
......@@ -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
......
......@@ -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
......
......@@ -22,7 +22,7 @@ from BTrees.IOBTree import IOBTree
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
......
......@@ -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.
......
......@@ -2,8 +2,8 @@ from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment