Search Terms Report Services (REST)

Search terms reports provide the ability to identify documents containing specific keywords or terms. You can enter multiple terms and generate a report listing the number of hits for each term in a document. For more information, see Search terms report. in the Relativity Documentation site.

The Search Terms Report Services provides functionality for generating a search terms report, adding terms to an existing search terms report, retrying any errors, and viewing the build progress of a specific search terms report.

The following sample use cases illustrate how you can use this service:

  • Create a new search terms report.
  • Add or update terms in a search terms report.
  • Run terms against a new search terms report.
  • Refresh a search terms report when document results have changed.
  • Run additional terms on an existing search terms report.
  • Retry any errors from a previous run of this API.
  • Get the progress of any running terms in a search terms report.
  • Retrieve the report from executing a search terms report.

You can also use the Search Terms Report Services through .NET. For more information, see Search Terms Report Services (.NET).

Guidelines for using the Search Terms Report Services

Review the following guidelines for working with the Search Terms Report Services.

URLs

The URLs for REST endpoints contain path parameters that you need to set before making a call:

  • Set the {versionNumber} placeholder to the version of the REST API that you want to use, using the format lowercase v and the version number, for example v1 or v2
  • Set other path parameters in the URLs to the Artifact ID of a given entity, for example setting {workspaceID} to the Artifact ID of a workspace.

For example, you can use the following URL to run a job for a search terms report:

Copy

<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/run-all-terms

Set the path parameters as follows:

  • {versionNumber} to the version of the service, such as v1.
  • {workspaceID} to the Artifact ID of the workspace containing the search terms report.
  • {searchTermsReportID} to the Artifact ID of the search terms report.

Create a Search Term Report

To create a search term report, use the Object Manager to create a Search Terms Report Object by sending a POST request with a URL in the following format:

Copy
<host>/Relativity.Rest/API/Relativity.Objects/workspace/<workspaceID>/object/create

Fill in the query parameters for:

• workspaceID

The response for the create STR operation is the same as for creating an RDO. See the Create an RDO section of the Object Manager for more details on the response.

Create terms for a search terms report

To create terms used in a search terms report, send a POST request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/create-terms

Update terms for a search terms report

To modify existing terms used in a search terms report, send a POST request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/update-terms

The response for an update operation contains the same fields as those for a create response. See the field descriptions and JSON sample for the response in View field descriptions for a create response.

Run all terms in a search terms report

To queue a Run All Terms job for a search terms report, send a POST request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/run-all-terms

The request body is empty.

The body of the response is empty. The service returns one of the following HTTP status codes:

Status Description
200 Success
404 Invalid Workspace ID
500 Invalid Search Terms Report ID

Run pending terms in a search terms report

To queue a Run Pending Terms job for a search terms report, send a POST request with a URL in the following format:

Copy
<host>Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/run-pending-terms

The request body is empty.

The body of the response is empty. The service returns one of the following HTTP status codes:

Status Description
200 Success
404 Invalid Workspace ID
500 Invalid Search Terms Report ID

View the build progress of a search terms report

To view the build progress of a search terms report and related statistics, send a POST request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/get-progress

The request body is empty.

Retry errors in a search terms report

To queue a Retry Errors job for a search terms report, send a POST request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/retry-errors

The request body is empty.

The body of the response is empty. The service returns one of the following HTTP status codes:

Status Description
200 Success
404 Invalid Workspace ID
500 Invalid Search Terms Report ID

Cancel a running search terms report job

To cancel a running search terms report job, send a POST request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/cancel-job

The request body is empty.

The body of the response is empty. The service returns one of the following HTTP status codes:

Status Description
200 Success
404 Invalid Workspace ID
500 Invalid Search Terms Report ID

Retrieve the URL for the Search Terms Result tab

To retrieve the URL used for navigating to the Search Terms Result tab with the appropriate filter criteria for this search terms report, send a POST request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/get-results-url

The request body is empty.

The response body contains the URL string.

Retrieve the URL for a search terms report

To retrieve the URL used to navigate to a search terms report, send a POST request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/SearchTermsReport/{searchTermsReportID}/get-report-url

The request body is empty.

The response body contains the URL string.

Check whether an index contains a long text field

To check whether a search index contains at least one long text field, send a GET request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/indexID/{indexID}/index-contains-long-text-field

The {indexID} path parameter is the Artifact ID of a search index.

The request body is empty.

The response body contains a Boolean value.

Retrieve object types for Search Terms Report and Result objects

To retrieve the object types for the Search Terms Report and Result objects, send a GET request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/get-str-object-types

The request body is empty.

Retrieve the report type choice IDs

To retrieve the report type choice IDs for a workspace, send a GET request with a URL in the following format:

Copy
<host>/Relativity.REST/api/relativity-search-terms-report/{versionNumber}/workspace/{workspaceID}/get-report-type-ids

The request body is empty.