[Zope-CMF] Create search for folders

Adrian Madrid aem@byu.edu
Thu, 19 Jul 2001 13:51:08 -0700 (PDT)


--- 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.

> 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.
  - Search for folder folder_name=='A'

Hope it helps,



=====
---------------------------
Adrian Esteban Madrid
Benson Institute, Webmaster
Brigham Young University
---------------------------
adrian_esteban@madrid.com
===========================

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/