[Zope-CMF] Create search for folders
Yoke May Seow
yokemay@apdip.net
Thu, 26 Jul 2001 16:33:18 +0800
> -----Original Message-----
> From: Adrian Madrid [mailto:aemadrid@yahoo.com]
> --- Yoke May Seow <yokemay@apdip.net> wrote:
> > Hi,
> >
> > Here's part of the code on the customised
> > search_form:
> >
> > <select name="folder_name" multiple size="5">
> > <option>A</option>
> > <option>B</option>
> > </select>
> >
> > I've created the property, 'folder_name', on the
> > folders. On the Portal
> > Catalog, I created a Field Index on the Indexes and
> > Metadata tab.
>
> Are these normal folders (not portal folders)? Check
> to see if these folders are even in the catalog. I'm
> not sure if the portal_catalog does the normal
> folders.
===> yes, all the folders are Portal Folders
> > On the Advanced search, I entered a text on the Full
> > text field and selected
> > option A. The search results found 0 items.
>
> If the folders are in the catalog then you need to:
> * Know that full text search gets the information from
> SearchableText which in turn is a method that usually
> includes title, description and text
> (documents,news,etc.)
> * Two options:
> - Change/create the SearchableText method to include
> your property for the folder.
===> Where is the SearchableText method located?
> - Search for folder folder_name=='A'
===> I searched for Folder A and no results found.
Regards,
SEOW Yoke May
Webmaster @ www.apdip.net
Email: yokemay@apdip.net
Tel: +603-2559122 ext. 2206
Fax: +603-2539740
Mobile: +6016-2837395
ICQ: 321345