[JDEV] Extending jabber:iq:search

Peter Millard me at pgmillard.com
Mon Mar 31 12:46:32 CST 2003


Peter Saint-Andre wrote:
> On Thu, Mar 27, 2003 at 05:11:01PM -0500, chelck at ebs.com wrote:
>> Can jabber:iq:search be used to search any service or is it tied to the user
>> directory. I noticed that its DTD defines tags like <email/> and <nick/>
>> which makes me think it is not extensible. Also it seems to be based on
>> query by example which is kinda limiting.
> Yes, it's hardcoded now. Bad, early protocol.
>> If you needed a generic search protocol what would you use?
> You'd need to write a new JEP. :) Or just use jabber:x:data (JEP-0004).

Just use jabber:x:data since there are at least a few clients which already
support this (Exodus and TKabber I think). Using the combination of :iq:search
and :x:data gives you as much flexibility as you should need IMO.

pgm.




More information about the JDev mailing list