on 08-20-2014 12:00 PM
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?
what the type of that field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.