Clarified that <first/> and <last/> elements in fact always represent given name and family name, respectively.
1.22004-03-22psa
Clarified scope (searching of any information repository, not just user directories); added search and result examples to the extensibility section.
1.12004-01-06psa
Added XML schema; added text regarding extensibility via Data Forms; added FORM_TYPE submission.
1.02003-01-09psa
Updated status to Active per vote of the Jabber Council.
0.12002-11-01psa
Initial version.
This specification documents a protocol currently used to search information repositories on the Jabber network. To date, the jabber:iq:search protocol has been used mainly to search for people who have registered with user directories (e.g., the "Jabber User Directory" hosted at users.jabber.org). However, the jabber:iq:search protocol is not limited to user directories, and could be used to search other Jabber information repositories (such as chatroom directories) or even to provide a Jabber interface to conventional search engines.
The basic functionality is to query an information repository regarding the possible search fields, to send a search query, and to receive search results. Note well that there is currently no mechanism for paging through results or limiting the number of "hits", and that the allowable search fields are limited to those defined in the XML schema; however, extensibility MAY be provided via the Data Forms (XEP-0004)XEP-0004: Data Forms <https://xmpp.org/extensions/xep-0004.html>. protocol, as described below.
In order to search an information respository, a user first needs to discover what search fields are supported by the service:
]]>
The service MUST then return the possible search fields to the user, and MAY include instructions:
Fill in one or more fields to search
for any matching Jabber users.
]]>
The user MAY then submit a search request, specifying values for any desired fields:
Capulet
]]>
The service SHOULD then return a list of search results that match the values provided:
If there are no matching directory entries, the service MUST return an empty <query/> element:
]]>
The fields defined in the 'jabber:iq:search' namespace are strictly limited to those specified in the schema. If a host needs to gather additional information, Data Forms SHOULD be used; a host MUST NOT add new fields to the 'jabber:iq:search' namespace. Support for extensibility via Data Forms is RECOMMENDED, but is not required for compliance with this document.
The extensibility mechanism for searching makes use of a hidden FORM_TYPE field for the purpose of standardizing field names within the form, as defined in Field Standardization for Data Forms (XEP-0068)XEP-0068: Field Data Standardization for Data Forms <https://xmpp.org/extensions/xep-0068.html>.. Implementations supporting this extensibility mechanism SHOULD support field standardization as well.
]]>
Use the enclosed form to search. If your Jabber client does not
support Data Forms, visit http://shakespeare.lit/
User Directory Search
Please provide the following information
to search for Shakespearean characters.
jabber:iq:search
]]>jabber:iq:searchmale
]]>jabber:iq:searchBenvolioMontaguebenvolio@montague.netmaleRomeoMontagueromeo@montague.netmale
]]>
The intent of the <first/> and <last/> elements (and associated data form fields) is that they map to given name and family name, respectively. Therefore, cultures that place the family name first and the given name second (e.g., as is done in China) would use <first/> for the given name and <last/> for the family name, NOT the other way around.
For example, the name of the Chinese philosopher Confucius would be rendered as shown below because his given name was Qui and his family name was Kong.
confuciusQuiKong
]]>
There are no security features or concerns related to this proposal.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA)The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>..
The XMPP RegistrarThe XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <https://xmpp.org/registrar/>. shall include the following information in its registries.
The XMPP Registrar includes the 'jabber:iq:search' namespace in its registry of protocol namespaces.
The following fields are reserved for use within jabber:x:data forms scoped by a FORM_TYPE of 'jabber:iq:search'; additional fields MAY be added via the XMPP Registrar's normal registration process but are outside the scope of this document.
jabber:iq:searchXEP-0055Forms enabling directory searches.
]]>
The protocol documented by this schema is defined in
XEP-0055: http://www.xmpp.org/extensions/xep-0055.html
]]>