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
a279aab8
Commit
a279aab8
authored
Jul 21, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
ac4a8b6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
lib/python/Products/ZCatalog/README.txt
lib/python/Products/ZCatalog/README.txt
+18
-3
No files found.
lib/python/Products/ZCatalog/README.txt
View file @
a279aab8
...
...
@@ -63,12 +63,27 @@ ZCatalog
Example to reindex a catalog using zopectl:
> zopectl debug
>
From the zopectl shell:
> from Products.ZCatalog.ProgressHandler import StdoutHandler
> from Products.ZCatalog.ProgressHandler import ZLogHandler
>
> # Reference to the portal catalog of some CMF site unter
> # /cmfsite/portal_catalog
> cat = app.cmfsite.portal_catalog
>
> # Refreshing a single index
> cat.reindexIndex('SearchableText', None, pghandler=StdoutHandler())
>
> # Let's refresh the whole catalog
> cat.refreshCatalog(pghandler=ZLogHandler())
>
> # Don't forget to commit
> get_transaction().commit()
The constructor of the handler can be given an optional parameter
'steps' (default is 100) that specifies after how much iterations
the progress should be reported.
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