Author Topic: Duplicate interacions when searching UCS with PSDK RequestSearch  (Read 2679 times)

Offline ricardo.sosa

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
Hello,

I am performing a query to UCS using RequestSearch and some conditions. For example:

[code]
RequestSearch req_search = RequestSearch.Create();

req_search.MaxResults = 100;

req_search.Query = "SentDate:[2017-04-01T00:00:00 TO 2017-05-07T23:59:59] AND FromAddress:*xxx.xxx* AND TypeId:"Inbound"";

req_search.IndexName = "interaction";

IMessage res = protocol.Request(req_search);
[/code]

The thing is that I get several interactions with the same ID. I would like to get only one record for each ID, the most recent one.

Is there any way to acomplish this?

Thanks.

Ricardo.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Duplicate interacions when searching UCS with PSDK RequestSearch
« Reply #1 on: August 21, 2017, 01:15:37 PM »
Reindex the index files on UCS level from scratch (by related option on UCS application level)

Offline ricardo.sosa

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
Re: Duplicate interacions when searching UCS with PSDK RequestSearch
« Reply #2 on: August 21, 2017, 03:49:54 PM »
Thank you Kubig,

I will check with the administrators if they can do it.

Thanks.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Duplicate interacions when searching UCS with PSDK RequestSearch
« Reply #3 on: August 22, 2017, 07:38:44 AM »
If they know Genesys, they will be able to do that. It is general function of UCS component - so, just configuration change and restart, nothing else.

Offline ricardo.sosa

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
Re: Duplicate interacions when searching UCS with PSDK RequestSearch
« Reply #4 on: August 25, 2017, 08:21:27 AM »
They did this reindex and it looks like it is working!

Thank you very much  :)

Ricardo.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Duplicate interacions when searching UCS with PSDK RequestSearch
« Reply #5 on: August 25, 2017, 08:48:20 AM »
You are welcome, I am glad it helped!