cancel
Showing results for 
Search instead for 
Did you mean: 

How to put limit on total number of search results for the table

Former Member
0 Kudos

Regards everybody.

MDM Java Search API has the method => SetNumSearchTableResults(int);

for internal use.

Though it is for internal use, I gave it a try,

but, as expected, did not work.

The method: GetNumSearchTableResults() returns the

totality of results found by MDM over the entire repository.

I want a funcitonality similar to SetNumSearchTableResults(int).

If my search inside mdm finds 1000 records, I want MDM to stop

searching, and send the page of results back to me,

which may be 100 results per page.

The repository contains 1 million records in MDM.

MDM will search thru all records.

Let's say, 20,000 results are determined.

My client wants only the first, say 1000, in the table

search result as returned by GetNumSearchTableResults() API.

For display, it will be pagesize of say 100.

Since the client expects 1000 to be searched (max),

rest of 19000 records need not be searched, thus

resulting in performance improvement.

Any clues, highly appreciated.

Thank you.

Shashank Date.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

I am still using version 4 of MDM, so it may be different in 5.5. In version 4,

there is CatalogData.GetResultSet(search, rsd, sortField, sortAscending, page)

that last param tells what page you want returned.

The ResultSetDefinition class has a method SetSize() where you can specify how many

records make up a page of data.

I hope this is helpful.

Bruce