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
ad418989
Commit
ad418989
authored
Jun 04, 2002
by
Casey Duncan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added online help for ZCTextIndex and Lexicon add forms
parent
caccd52f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
86 additions
and
6 deletions
+86
-6
lib/python/Products/ZCTextIndex/README.txt
lib/python/Products/ZCTextIndex/README.txt
+2
-6
lib/python/Products/ZCTextIndex/__init__.py
lib/python/Products/ZCTextIndex/__init__.py
+3
-0
lib/python/Products/ZCTextIndex/dtml/addLexicon.dtml
lib/python/Products/ZCTextIndex/dtml/addLexicon.dtml
+2
-0
lib/python/Products/ZCTextIndex/dtml/addZCTextIndex.dtml
lib/python/Products/ZCTextIndex/dtml/addZCTextIndex.dtml
+2
-0
lib/python/Products/ZCTextIndex/help/Lexicon_Add.stx
lib/python/Products/ZCTextIndex/help/Lexicon_Add.stx
+38
-0
lib/python/Products/ZCTextIndex/help/ZCTextIndex_Add.stx
lib/python/Products/ZCTextIndex/help/ZCTextIndex_Add.stx
+39
-0
No files found.
lib/python/Products/ZCTextIndex/README.txt
View file @
ad418989
...
...
@@ -14,7 +14,7 @@ Advantages of using ZCTextIndex over TextIndex:
- A more refined scoring algorithm, resulting in better selectiveness:
it's much more likely that you'll find the document you are looking
for among the first fe highest-ranked results.
for among the first fe
w
highest-ranked results.
- Actually, ZCTextIndex gives you a choice of two scoring algorithms
from recent literature: the Cosine ranking from the Managing
...
...
@@ -39,11 +39,7 @@ functional test programs in the tests subdirectory show how to do
this, for example mhindex.py, mailtest.py, indexhtml.py, and
queryhtml.py.
How to use as a Zope Product
----------------------------
XXX Casey, please write this.
See the online help for how to use ZCTextIndex within Zope.
Code overview
...
...
lib/python/Products/ZCTextIndex/__init__.py
View file @
ad418989
...
...
@@ -40,6 +40,9 @@ def initialize(context):
icon
=
'www/lexicon.gif'
)
context
.
registerHelp
()
context
.
registerHelpTitle
(
"Zope Help"
)
## Functions below are for use in the ZMI constructor forms ##
def
getElementGroups
(
self
):
...
...
lib/python/Products/ZCTextIndex/dtml/addLexicon.dtml
View file @
ad418989
...
...
@@ -2,6 +2,8 @@
<dtml-var "manage_form_title(this(), _,
form_title='Add ZCTextIndex Lexicon',
help_product='ZCTextIndex',
help_topic='Lexicon_Add.stx'
)">
<p class="form-help">
...
...
lib/python/Products/ZCTextIndex/dtml/addZCTextIndex.dtml
View file @
ad418989
...
...
@@ -2,6 +2,8 @@
<dtml-var "manage_form_title(this(), _,
form_title='Add ZCTextIndex',
help_product='ZCTextIndex',
help_topic='ZCTextIndex_Add.stx'
)">
...
...
lib/python/Products/ZCTextIndex/help/Lexicon_Add.stx
0 → 100644
View file @
ad418989
ZCTextIndex Lexicon - Add: Create a new ZCTextIndex Lexicon
Description
This view allows you to create a new ZCTextIndex Lexicon object.
ZCTextIndex Lexicons store the words indexed by ZCTextIndexes in a
ZCatalog.
Controls
'Id' -- Allows you to specify the id of the ZCTextIndex Lexicon.
'Title' -- Allows you to specify the title of the ZCTextIndex Lexicon.
Pipeline Stages
The remaining controls allow you to select the desired processing
of text to index by selecting pipeline stages.
The default available stages are:
- **Word Splitter** This is the only mandatory stage. The word
splitter breaks the text up into a list of words. Included is a
simple whitespace splitter, and a splitter that removes HTML
tags. The HTML aware splitter gives best results when all of
the incoming content to index is HTML.
- **Stop Words** To conserve space in the vocabulary, and possibly increase
performance, you can select a stop word remover which subtracts
very common or single letter words from the Lexicon. Bear in
mind that you will not be able to search on removed stop words,
and they will also be removed from queries passed to search
ZCTextIndexes using the Lexicon.
- **Case Normalizer** The case normalizer removes case information from the words in
the Lexicon. If case-sensitive searching is desires, then omit
this element from the pipeline.
S
lib/python/Products/ZCTextIndex/help/ZCTextIndex_Add.stx
0 → 100644
View file @
ad418989
ZCTextIndex Add: Create a new ZCTextIndex
Description
A ZCTextIndex is an index for performing full text searches over
bodies of text. It includes the following features:
- Boolean query operators with parenthetical grouping
- Globbing (partial word) and phrase matching
- Two selectable relevance scoring algorithms
ZCTextIndex is designed as a replacement for standard TextIndex, and
has several advantages over it.
Controls
'Id' -- The id of the ZCTextIndex, must be unique for this ZCatalog.
'Field Name' -- The name of the field (object attribute) to be indexed.
'Ranking Strategy'
- **Okapi BM25 Rank** A relevance scoring technique that seems to
work well when the document text is considerably longer than the
query string, which is often the case with user specified query
strings.
- **Cosine Measure** A relevance scoring technique derived from the
"*Managing Gigabytes*":http://www.cs.mu.oz.au/mg/ book. It seems
to work best when the queries are similar in size and content to
the text they are searching.
'Lexicon' -- The ZCTextIndex Lexicon to be used by this ZCTextIndex.
Lexicons process and store the words from the text and
help in processing queries. You must define a ZCTextIndex
Lexicon before you can create a ZCTextIndex. Several
ZCTextIndexes can share the same Lexicon if desired.
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