You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "VU, Thi Thu Thuy" <th...@sap.com> on 2010/04/02 09:33:53 UTC

Search in Shindig

Hi,
I don't know if Shindig supports function < search > following the name of person or not?
Can you tell me?
Thank you very much.
Have a nice day.


Re: Search in Shindig

Posted by Paul Lindner <li...@inuus.com>.
Shindig supports portablecontacts methods of searching.  You do have to
implement the filtering yourself in your Person service.

Here's the relevant section from
http://www.portablecontacts.net/draft-spec.html

Given the parameters
filterBy=displayName&filterOp=startswith&filterValue=Chr, only the first
contact (with id=1) would match and be returned. However, with parameters
filterBy=displayName&filterOp=present, both contacts would be returned.
Given the parametersfilterBy=email&filterOp=contains&filterValue=plaxo.com,
only the second contact (with id=2) would match, as would it be the only
contact to match given the parameters filterBy=email&filterOp=present.

If a request specifies a filterValue but no filterBy or filterOp, it is up
to the Provider how to interpret this filter request. Providers MAY choose
to default to filtering by a given field (e.g. displayName); they MAY choose
to implement a custom, Provider-specific query syntax for filterValue in
this case; or they MAY choose to reject requests of this type. In general,
if Consumers want to request specific behavior from Providers, they should
do so by being explicit in their use of query parameters.


On Fri, Apr 2, 2010 at 12:33 AM, VU, Thi Thu Thuy
<th...@sap.com>wrote:

> Hi,
> I don't know if Shindig supports function < search > following the name of
> person or not?
> Can you tell me?
> Thank you very much.
> Have a nice day.
>
>