• Remember Mailing List

Indexing fields

from Winn King on Jan 12, 2008 06:12 PM
Hi,
I followed the instructions below from the sampleremember tutorial 
explicitly but expressoDrink is not showing up as an index in the 
membrane catalog. I restarted the zserver and updated the catalog. Is 
there an additional step I'm missing?

How to Make your Member Data Accessible for Quick Catalog Searches

 One of the big benefits of using remember is that data can easily be 
placed into ZCatalog indexes and metadata fields.  This allows you to 
use the familiar catalog API calls to search a site membership.  To 
place the espressoDrink schema fields into the stock catalog that comes 
with membrane, "index='membrane_tool/KeywordIndex:brains'," is added to 
the following code::

    atapi.StringField(
            'espressoDrink',
            required=1,
            index='membrane_tool/KeywordIndex:brains',
            widget=atapi.StringWidget(
                label="Your Favorite Espresso Drink",
                description="Enter your favorite Espresso Drink."),
            regfield=0,
                ),
Return to date view: threaded or flat