Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

java api to retrieve text html RecordId

hi all,

I want to search for recordID based on html text without the html blocks.

I tried with fieldsearchdimension and use RetrieveLimitedRecordsCommand. It always return zero record, no matter i set to Equal or contains as the search operator. 

FieldSearchDimension searchDimension = new FieldSearchDimension(text html field code);

  TextSearchConstraint txtConstraint = new TextSearchConstraint("test", TextSearchConstraint.EQUAL);

  search.addSearchItem(searchDimension, txtConstraint);

and then execute RetrieveLimitedRecordsCommand in order to get the search result. It always give me nothing.

In MDM, the preview text is :test" under normal preview, while in html it shows as below:

<html xmlns="">



    <meta content="text/html; charset=utf-8"

    http-equiv="Content-Type" />


    <meta name="GENERATOR" content="MSHTML 8.00.6001.18702" />






Anyone could share that searching for text html is possible using java api or could you share the correct search/command to use?

Not what you were looking for? View more on this topic or Ask a question