cancel
Showing results for 
Search instead for 
Did you mean: 

java api to retrieve text html RecordId

0 Kudos

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="http://www.w3.org/1999/xhtml">

  <head>

    <title></title>

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

    http-equiv="Content-Type" />

   

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

  </head>

  <body>

    test

  </body>

</html>

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

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

what the type of that field?

0 Kudos

it is text html field

junwu
Active Contributor
0 Kudos

it is lookup field.... you got it?