class EntryIndexes(grok.Indexes): grok.site(Blog) grok.context(IEntry) grok.name('entry_catalog') title = index.Text() content = index.Text() published = index.Field() categories = index.Set()
class MammothIndexes(grok.Indexes): grok.site(Herd) grok.context(IMammoth) name = index.Field() age = index.Field() message = index.Text()
class MammothIndexes(grok.Indexes): grok.context(Mammoth) grok.name('foo_catalog') name = index.Field() age = index.Field() message = index.Text()
class BookIndexes(grok.Indexes): grok.site(BookShelf) grok.context(Book) title = index.Text()
class TuskIndex(grok.Indexes): grok.context(IPachyderm) grok.site(Herd) tusks = index.Text()