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
4153122e
Commit
4153122e
authored
May 30, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Text Index does not know anymore about the available splitters.
The splitter is now aquired from the used vocabulary.
parent
72c4ac4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
+2
-9
No files found.
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
View file @
4153122e
...
...
@@ -91,7 +91,7 @@ undo information so that objects can be unindexed when the old value
is no longer known.
"""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
string
,
re
...
...
@@ -110,7 +110,6 @@ from BTrees.IIBTree import IIBTree, IIBucket, IISet, IITreeSet
from
BTrees.IIBTree
import
difference
,
weightedIntersection
from
Lexicon
import
Lexicon
import
Splitter
from
types
import
*
...
...
@@ -174,10 +173,6 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
self
.
call_methods
=
call_methods
# Default Splitter
self
.
availableSplitters
=
Splitter
.
availableSplitters
self
.
useSplitter
=
self
.
availableSplitters
[
0
][
0
]
# Default text index operator (should be visible to ZMI)
self
.
operators
=
{
'andnot'
:
AndNot
,
'and'
:
And
,
'near'
:
Near
,
'or'
:
Or
}
...
...
@@ -352,7 +347,7 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
return
0
lexicon
=
self
.
getLexicon
()
splitter
=
Splitter
.
getSplitter
(
self
.
useSplitter
)
splitter
=
lexicon
.
Splitter
wordScores
=
OIBTree
()
last
=
None
...
...
@@ -686,8 +681,6 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
REQUEST
=
None
,
RESPONSE
=
None
,
URL2
=
None
):
""" preferences of TextIndex """
# self.useSplitter = splitter
# self.useOperator = text_operator
if
self
.
vocabulary_id
!=
vocabulary
:
self
.
clear
()
...
...
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