[Zope-CMF] catalog and Subject metadata

seb bacon seb@jamkit.com
Mon, 21 May 2001 12:51:18 +0100


* marc lindahl <marc@bowery.com> [010518 17:13]:
> > From: Tres Seaver <tseaver@novacoxmail.com>
> > 
> > The "Quick Search" box in the standard header only searches the
> > "SearchableText" index, which presumably is the content's "full text".
> > The Subject field, like the rest of the metadata, is not included in
> > that index by default;  to remedy this, you can either:
> > 
> > - Hack or derive from CMFCore.CatalogTool to add the desired metadata
> > to the class at indexing time;
> > 
> > - Hack the SearchableText method on your content classes to included
> > the desired metadata directly.
> 
> Couldn't you also instead of having standard_top_bar directly submit a
> search, pass thru a DTML method that took the input box data and formed an
> OR search of that data in all the desired fields? (the lazy concatenation
> mentioned here http://www.zope.org/Members/Caseman/ZCatalog_for_2.3 ?)

Is there a good reason for the "Quick Search" box retrieving only
SearchableText, e.g. it's quicker?  Otherwise, I would say this was a
bug: at the moment, a search for 'spam' won't bring up documents whose
subject is spam, which isn't really expected behaviour.

cheers,

seb