Home

 

Searching for information

Search Lotus Connections to find content that contains a specific text string in its title, description or content, or to find information tagged with a specific tag term.


Atom API request details

Resource Description
/atom/search/results Search Lotus Connection for public information.
/atom/mysearch/results Search Lotus Connections for both public information and private information that you have access to. You must provide authentication information in the request to retrieve this resource.

Use one or both of the following input parameters to identify what to search for.


Required input parameters

Parameter Description
query Text to search for. Returns a list of results with the specified text in the title, description, or content. Encode the strings. By default, spaces are treated as an AND operator. The following operators are supported:

  • AND or &&: Searches for items that contain both words. For example: query=red%20AND%20test returns items that contain both the word red and the word test. AND is the default operator.

  • NOT or !: Excludes the word that follows the operator from the search. For example: query=test%20NOT%20red returns items that contain the word test, but not the word red.

  • OR: Searches for items that contain either of the words. For example: query=test%20OR%20red

  • To search for a phrase, enclose the phrase in quotation marks (" ").

  • +: The plus sign indicates that the word must be present in the result. For example: query=+test%20red returns only items that contain the word test and many that also contain red, but none that contain only the word red.

  • ?: Use a question mark to match individual characters. For example: query=te%3Ft returns items that contain the words test, text, tent, and others that begin with te.

  • -: The dash prohibits the return of a given word. This operator is similar to NOT. For example: query=test%20-red returns items that contains the word test, but not the word red.

You cannot perform a wildcard (*) search.

tag Tag to search for. Returns a list of results with the specified tag. You can use this parameter multiple times to search for content that is tagged with all of the tag terms.

The Home page query syntax is based on the Lucene query parser syntax. However, only the syntax options listed in the description for the query parameter are supported. For more information, go to the following external Web site:

http://lucene.apache.org/java/2_4_0/queryparsersyntax.html


Optional input parameters

Parameter Description
component Limits the search results to include items from a specific feature. You can use this parameter multiple times to function as an AND operator. For example, if you specify component=dogear&component=activities, the results would be limited to all of the activities that have been dogeared or all activity bookmarks that are also dogeared. Options are:

components Limits the search results to include items from a specific feature. You can use this parameter multiple times to function as an OR operator. For example, if you specify components=dogear&components=activities, the results would include all items from Activities or Bookmarks that match the search criteria. Options are:

email Limits the results to only those items associated with the person who has the specified e-mail address. For example, the person could be the author of an activity entry that is returned or a member of the community returned.
userid Limits the results to only those items associated with the person who has the specified user ID. This parameter overwrites the email parameter if both are specified.


Optional paging input parameters

Parameter Description
page Page number. Specifies the page to be returned. Default is 1.
ps Page size. Specify the number of entries to return per page.
results* Synonymous with ps parameter.
start* Defines an offset from the first result in the set. This parameter is ignored if a page parameter is provided. This starts from 0. Default is 0.

You can use the ps and page parameters together or the results and start parameters together, but do not mix parameters from the two sets together.

* Identifies parameters that are supported in Lotus Quickrâ„¢ searches.

 

Examples

Here are some quick query syntax examples:

 

Example

To search for all content across Lotus Connections that contains the text Red, send the following HTTP request:

The following content is returned by the server:


Get Search feeds

 

Related reference


Search result entry content


+

Search Tips   |   Advanced Search