Skip to Content

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 20, 2014 at 12:33 PM

    what the type of that field?

    Add comment
    10|10000 characters needed characters exceeded