WebSeitz/wikilog
Zope Catalog
Whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.

(backlinks off) (map off)
(search off)
last edited by BillSeitz on Jul 3, 2008 2:46 am

's zCatalog is a way of creating indexes to improve performance.

ZWiki:HowToInstallAZwikiCatalog describes the manual process

I want an automated process so I can do it on customer sites. Also my problem makes it impossible to do it the manual way.

ZWiki:SetupIssueTracker has an to do the job.

I didn't think an was was great approach, because

But I tried it that way anyway just to avoid confusion. Hah.

Jun26 2003

Copied external method. Ripped out the pieces specific to the .

Ran external method. Got error message "index already exists" (not the exact phrasing). No catalog created. Tried a couple times with the same result.

Tried creating a catalog by hand. Noticed that it added some index and tables automatically.

Tried deleting that catalog, removing the automatically-added indexes from the external method, then running it again. No go.

Tried adding the catalog by hand, then tweaking the method so that it wouldn't create a new catalog, but just add indexes, etc. It gave me the same error message! But on inspection all the right stuff had been added to the catalog!

Unfortunately:

Unless I find a problem, I'll try and convert this to a [Python Script] and figure out the manage_findObjects piece to add. Or maybe I'll give a last try with the external method after ripping out the properties.

June30

Here's the list of commands. Here are some samples.

tried a one-line script to create a catalog --, 2003/06/30 20:41 [GMT]
'catalog = [Z Catalog](catalog,container=self)'

But get You are not allowed to access ZCatalog in this context - 90% sure this is because [Python Script] can't do so many things because of the [SandBox].

I wonder whether this approach will get me around the problem? Ugh, it looks like that would still require mucking around outside [ZMI].

Haven't gotten a response re [Python Script] --, 2003/07/01 18:10 [GMT]
So maybe I'll face reality and get back to the .

Yay, can get back to this - solved --, 2003/07/16 22:09 [GMT]
article notes that acquisition applies to [External Methods], too.

or another [Python Script] approach --, 2003/07/16 22:35 [GMT]
[Dieter Maurer] says use 'destinationFolder.manage_addProduct[[ Product Name]].constructor(args)'

just do it manually for now --, 2003/07/17 15:54 [GMT]
My priority is to improve performance of the whole server by getting my big wiki indexed. I can play with other methods later.

hmm, it's still slow --, 2003/07/17 15:58 [GMT]
Apparently still not using the catalog - code shows a bruteforce flag, don't know where that's set, or whether it's obsolete.

just rip out pieces for now --, 2003/07/17 16:46 [GMT]
to force it to use the Catalog.

Unfortunately, references to src for the contents of the blogbit pages kicks out garbage. I have an ugly feeling they'd need to be included in the Catalog. Unless maybe I do some sort of lookup from the page id that's in the cache to the page contents that's not in the cache?

use [Principia Search Source]? --, 2003/07/17 21:54 [GMT]
When I created the catalog this was included as a default Index and Metadata column, and I didn't delete it.

So I thought - hey, maybe I can use that instead of src.

But it has the same weird effect - it sucks in the contents instead of the indexed-page contents. Weird.

if add src to metadata --, 2003/07/17 23:21 [GMT]
Don't do it directly, but make a [Python Method] to return just some subset of it (first 2000 chars).

Hmm, if done right could use this for non-blog pages, too. Or, maybe prefer to render canonicalLinks for those? Or both?

got response --, 2003/07/18 00:24 [GMT]
needed to use getObject() and text()

see ZWiki:ZwikiBlog

remember to fix test for catalog --, 2003/07/18 00:26 [GMT]
Ripped that out before.

And ZWiki:ZwikiBlog doesn't test - it just assumes there's a catalog.

other places to reference catalog --, 2003/07/18 21:52 [GMT]
Did it for:

Not for:

See : | |


 




Bill Seitz, fluxent at gmail dot com, Weblog