Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RIDC search returning wrong results

_userJan 10 2011 — edited Jan 12 2011
Hi,

I am trying to get all the files in the specific folder. Here my folder name is 'Sudha',it is under 'Contribution Folder'.
Actual images i could see and uploaded under this folder are only four (WINTER,WATERLILLIES,SUNSET,Test_FINAL) ,But when i ran the below program i got the 20 files under this folder.
I could nt figure out wher the mistake is and how i got these images.

public static String searchContent() {
System.out.println("-- Search is called");
try {
IdcClientManager manager = new IdcClientManager();
IdcClient idcClient = manager.createClient("idc://abc.com:4444");
IdcContext userContext = new IdcContext("sysadmin", "idc");
// populate the binder with the parameters
DataBinder binder = idcClient.createBinder();
binder.putLocal("IdcService", "GET_SEARCH_RESULTS");
binder.putLocal("QueryText", "Sudha");
binder.putLocal("ResultCount", "");
ServiceResponse response = idcClient.sendRequest(userContext, binder);


binder = response.getResponseAsBinder();
DataResultSet resultSet = binder.getResultSet("SearchResults");


System.out.println("Result set size -->" +
resultSet.getRows().size());
//loop over the results
for (DataObject dataObject1 : resultSet.getRows()) {
System.out.println("File Name is: " +
dataObject1.get("dDocName"));

}
} catch (Exception e) {
e.printStackTrace();
System.out.println(e.getMessage());
}
return null;
}

Output is :
Result set size -->20
File Name is: WATERLILLIES
File Name is: WINTER
File Name is: Test_FINAL
File Name is: SUNSET123
File Name is: SUNSET11
File Name is: 1294151520601
File Name is: 1294149438986
File Name is: 1294147062602
File Name is: 1294147038207
File Name is: 1294146056792WINTER.JPG
File Name is: SUNSET
File Name is: TEST-CHECKIN-9
File Name is: 1294137147174
File Name is: TEST-CHECKIN-7
File Name is: 1294129864772
File Name is: TEST-CHECKIN-6
File Name is: 1294124664643
File Name is: 1294124507005
File Name is: 1294122604261
File Name is: 1294120442068


any suggestions plz.
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2011
Added on Jan 10 2011
10 comments
1,058 views