Skip to Content
1
Former Member
Jun 29, 2007 at 04:04 PM

Trex search with special character

15 Views

Hi all,

I have a problem on a EP6 SP17.

I have already created Index at TREX and it is working properlly.

I develop a search tool with this query (part of code) :

IQueryEntry nameOfFileQuery = federatedSearch.getNewQueryEntry();

nameOfFileQuery.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);

nameOfFileQuery.setPropertyName(

new PropertyName(

IMetaName.DEFAULT_NAMESPACE_ALIAS,

"displayname"));

nameOfFileQuery.setPropertyOperator(

IQueryEntry.PROPERTY_OPERATOR_EQUAL);

nameOfFileQuery.setPropertyType(IQueryEntry.PROPERTY_TYPE_STRING);

nameOfFileQuery.setTermWeight(1.0F);

nameOfFileQuery.setCaseSensitive(IQueryEntry.CASE_SENSITIVE);

nameOfFileQuery.setFuzziness(1.0F);

It runs almost perfectly but when I type any word with special character like acé the search tool show the resources equal to "acé" but a lot of resources with "ACE", "acé", "ace" and so on.

Does anyone can help to solve my problem.

thank you,

Pino.