Re: problem with constant search fields
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Thu, 22 Mar 2007 09:33:05 +0100 (CET)
Hi Amit,

On Thu Mar 22 2007, Amit Fein wrote:
> Hi all,
>
> Please correct me if I'm wrong, but currently the whole search mechanism
> (XEP-0055) is based on 4 constant fields : first name, last name, nick &
> email.
> we need a more generic mechanism that will handle any given search
> fields, so, for example, the function Search::fetchSearchFields should
> return an array of strings (i.e - array of search fields), and the
> search itself will look for these tags in the XML file, and not constant
> tags like "FirstName".

XEP-0055 originally evolved around those 4 fields. Later it was extended by 
DataForms, which you can use to search in arbitrary fields. The flexibility 
depends only on what the server-side XEP-0055 implementation offers. 
Wild/Openfire's search plugin is an example of such a service that uses 
DataForms.

cheers,
Jakob

Attachment: pgpzceoK6HCrU.pgp
Description: PGP signature