on 05-14-2007 8:20 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.