Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RAM Quesry returning only 1000 Assets

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

0 votes



One answer

Permanent link
Queries are limited to 1000 results. If you need more than 1000 results you will have run multiple queries and call query.setResultsStartIndex().

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 21 '11, 2:17 a.m.

Question was seen: 4,119 times

Last updated: Mar 21 '11, 2:17 a.m.

Confirmation Cancel Confirm