Thursday, July 2, 2015

Search API for custom saved search results only 500 results - (7.5.1.2, 8.0.1.x, 8.5.0.x, 8.5.5.x)

Problem Statement:
Recently we upgraded our IBM BPM servers to 7.5.1.2 and faced issue while using search API.

We are using REST-API to get list of task from custom Inbox. Though there were 1000+ results, API was just fetching 500 results only 

Explaination:
When running a search in the process portal the value here is how many records are returned per search. If you expect more than 500 records for a call, then this number needs to be increased. An example is the TWSearch functtion. When using the saved search in an API format, you may expect to have more than the default of 500 rows returned. When using the saved search API, if you need more than 500 records returned, increase this number.

Solution:
add below block in 100Custom.xml

<properties>
 <server merge="mergeChildren">
  <process-search-engine-count-optimization merge="replace">500
  </process-search-engine-count-optimization>
 </server>
</properties>

Ref
http://www-01.ibm.com/support/docview.wss?uid=swg1JR52087


No comments:

Post a Comment