----- Original Message -----
From: "Chris Withers" <[EMAIL PROTECTED]>
To: "Andreas Jung" <[EMAIL PROTECTED]>
Cc: "Matt Hamilton" <[EMAIL PROTECTED]>; "zope-dev" <[EMAIL PROTECTED]>
Sent: Tuesday, June 12, 2001 9:41 AM
Subject: [Zope-dev] Pluggable Index How-To Questions


> Andreas Jung wrote:
> >
> > There is a new How-To for PlugginIndexes:
> >
> > http://www.zope.org/Members/ajung/howto/PluginIndexes/index_html
>
> Looks great :-)
>
> Coupla Questions:
>
> Is there anything you can do in the index_object method to re-use
ZCatalog's
> "get all attributes and call them if they're callable"?

Don't understand the question...maybe I don't know this ZCatalog feature.

>
> In uniqueValues, what do the lengths that withLengths returns actually
mean?

Good question  - I think uniqueValues is only used for FieldIndex. I think
you usually must not implement it - I must check this...

> In _apply_index, are ResultSet objects and how to build them documented
> anywhere? What is cid used for?

Best way is to take a look in PathIndex.py..

>
> I take it query_options is better understood by looking at the PathIndex
> example?

There is a new API for passing parameters to the searchResults() of the
ZCatalog
(see ZCatalog/help/ZCatalog_Parameters.stx and doc/changenotes). The
query_options
 is a list of options that the index is interested when it gets a search
request.

>
> And finally, has anyone considered writing a Pluggable Index that uses an
SQL
> index or tabel of some sort to do its indexing?

never heard of it.

> How abotu a 'Generic Pluggable Index' that lets you implement the
interface
> using Python Scripts, ZSQL methods, etc?

uuuuuuuhhhhhhhhhhhhh.....I think you can write that as a Product. But I
don't think
we will write this. And I don't like the idea...I prefer to write such a
package
with VI and store it in the filesystem :-)

Andreas


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to