It's all about the answers!

Ask a question

RAM Quesry returning only 1000 Assets


Abhinav Ajmera (22113020) | asked Mar 21 '11, 2:17 a.m.
Hi,

Inspite of setting max search result to 4000, I am getting only 1000 asset as search query (In actual it should have sent 1567 assets).

Below is the code I am using.

SearchQuery query = session.createAssetQuery(searchString);
int maxResult = 4000;
query.setMaxResults(maxResult);
//Get RAM search Result
SearchResult searchResult = session.getAssets(query);
//Get retrieved assets
RAMAssetSearchResult[] assets = (RAMAssetSearchResult[])searchResult.getAssetSearchResults();

Abhinav

One answer



permanent link
Sheehan Anderson (1.2k4) | answered Mar 21 '11, 2:26 p.m.
JAZZ DEVELOPER
Queries are limited to 1000 results. If you need more than 1000 results you will have run multiple queries and call query.setResultsStartIndex().

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.