Documentation

{{docApp.title}}

{{docApp.description}}

How can we help?

{{docApp.searchError}}
{{product.name}}

Searching in {{docApp.searchFilterBySpecificBookTitle}}

{{docApp.searchResultFilteredItems.length}} results for: {{docApp.currentResultsSearchText}} in {{docApp.searchFilterBySpecificBookTitle}}
Search results have been limited. There are a total of {{docApp.searchResponse.totalResultsAvailable}} matches.

You have an odd number of " characters in your search terms - each one needs closing with a matching " character!

{{docApp.libraryHomeViewProduct.title || docApp.libraryHomeViewProduct.id}}

{{docApp.libraryHomeViewProduct.description}}

  1. {{book.title}}

{{group.title || group.id}}

{{group.description}}

  1. {{book.title}}

{{group.title}}

Application API / DocumentSearch

Operation Information

  • Application Reference: com.hornbill.docmanager
  • Scope: Global
  • Class: Application
  • Required Privilege Level: guest
  • Required Rights: none

Description

Search for documents

Request Parameters

The DocumentSearch API takes the following input parameters.

Note

When sending a JSON request payload to the API, the order of parameters is not significant. However, for XML request payloads, parameters must be provided in the exact order specified in this documentation to comply with input validation requirements.

Name Type Required Description
query xs:string Yes The search Query
pagestart xs:integer No Use for paging (default 0)
limit xs:integer No Max number of results (default 10)
segmentLimit xs:integer No limit how many documents the search will return before checking if they are available for the user (default 100)
libraryUrn xs:string No Limit results to those in this library
searchInCustomerPortalLibraries xs:boolean No Limit results to those in this library
searchInEmployeePortalLibraries xs:boolean No Limit results to those in this library

Response Parameters

Name Type Description
documents xs:string List of documents (JSON)
totalSearchResults xs:integer The total matching results
nextPage xs:integer Send this as the pagestart to get next results
segmentMatch xs:integer How many documents in this search were available to the userThe approx results for user is segmentMatch / totalSearchResults

Code Examples

In This Document