Mitkees & Webcenter

Into the charm of Oracle Webcenter and ADF

Full Text Search In Webcenter Content “UCM” using java and RIDC API

To Search UCM using Java Code and RIDC we have to change an attribute in the config file of the UCM which you can find under this path


you will find and attribute called ” SearchIndexerEngineName” set to OracleTextSearch

SearchIndexerEngineName=OracleTextSearch      comment it and add the following command


Then you can call the RIDC API from Java code as follows to us the Full text Search


IdcClientManager manager = new IdcClientManager();
IdcClient idcClient = manager.createClient(“idc://serverip:4444”);

IdcContext userContext =
new IdcContext(“username”, “password”); // populate the binder with the parameters
DataBinder binder = idcClient.createBinder();

binder.putLocal(“IdcService”, “GET_SEARCH_RESULTS”);
“dDocFullText <substring> <qsch>” + “your query” +”</qsch>”);
binder.putLocal(“SearchEngineName”, “databasefulltext”);
binder.putLocal(“ResultCount”, “20”);

ServiceResponse response = idcClient.sendRequest(userContext, binder);
DataBinder serverBinder = response.getResponseAsBinder();
binder = response.getResponseAsBinder();

DataResultSet resultSet =binder.getResultSet(“SearchResults”); // loop over the results
for (DataObject dataObject : resultSet.getRows()) {
System.out.println(“Title is: ” + dataObject.get(“dDocTitle”));
System.out.println(“Author is: ” + dataObject.get(“dDocAuthor”));



restart the UCM and start indexing again.


3 responses to “Full Text Search In Webcenter Content “UCM” using java and RIDC API

  1. Pingback: RIDC versus CIS -

  2. Mohamed Ȝwais January 6, 2016 at 4:43 pm

    Dear Mr.Mohamed
    greetings. I want to ask you about some things .
    1- I didn’t find the variable called ” SearchIndexerEngineName” in my config.cfg .
    2- Do you mean searching inside the document itself or searching for the documents on ucm?
    3- The metadata field called “dDocFullText” didnt define in the standard metadata fields in my ucm like dDocTitle-dDocName … and so on
    Mohamed Ewais

    • Mohamed Mitkees February 28, 2016 at 11:57 am

      Dear Mohamed,
      if you didn’t find it just add the new line. thats mean you didn’t add it at the configuration of the ucm at the begining.

      This is used to search inside the file itself.

      there is no field dDocFullText .. you just search in quick bar and it will return the document.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: