Skip navigation links

Package com.ibm.openpages.api.search

Provides interfaces to work with the OpenPages Global Search, allowing for cross-object search against all data configured by administrators to be indexed for search.

See: Description

Package com.ibm.openpages.api.search Description

Provides interfaces to work with the OpenPages Global Search, allowing for cross-object search against all data configured by administrators to be indexed for search. All searches are sent to the search server for handling the results and then returned based on the user's access rights.

Using search interfaces

Global Search can be accessed through ISearchService which has two public methods:
isSearchReadyForUse() which checks whether the state for Global Search is ready for searching and search(String, SearchOptions) which performs a search and gets the results.
Search methods return results using ISearchResults which is a container interface that has methods to find summary information about the search results. For example, the total search results and the actual range of results returned as ISearchResource.
ISearchResource is a light-weight interface for interacting with the search results, which will be GRC Objects. The interface provides access to read a subset of the System Fields for that Resource.

Administrative Settings that control Search

All Search behavior is controlled using registry settings under: '/ Platform / Search'. The settings that directly influence the search requests are in '/ Platform / Search / Request' (Note, some settings are hidden by default).

Other Settings:

In addition to the search related registry settings, all Object Types and Fields may be configured to be included in the Search Index or not. Any object type that is enabled for search will possibly be in the search results unless the SearchOptions explicitly identify the Ids for Object Types to be included. The Administrator can include or exclude specific Object Types from search globally in the Object Types administration page. For every record of an object in the Search index, all the fields on the Object type will be searched. The Administrator can include or exclude specific fields in the Field Groups administration page.

Search Exception and error messages

The ISearchService methods may throw SearchException if encountering any error or unexpected situation. The following table lists general errors and possible causes.

Error Code Error Possible Causes
-24001 Search is not enabled Search feature is not enabled and/or Index not created
-24002 Search request encountered an error. General search error. Unexpected error from search server, failure to post-process search results
-24003 Timeout Search request timed out
-24004 Search range is outside the bounds of the search results Range out of bounds. Example: Range start exceeds the maximum result cache size value or total number of results
-24005 Could not establish connection to the search engine A connection could not be made to Search Server URL, check if Search Server service is stopped or Search Server URL setting is incorrect
-24006 Search engine page not found An HTTP 404 error from Search Server, check settings: Search Server URL or Query Path and that the Global Search index has been synchronized
-24007 Invalid search terms provided Search terms were blank
Since:
7.2
Skip navigation links

Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.