Author Topic: Searching UCS and Archive with PSDK.  (Read 2696 times)

Offline ricardo.sosa

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
Searching UCS and Archive with PSDK.
« on: August 14, 2017, 05:02:50 PM »
Hello, I developed time ago an application to search for mails in UCS.
Now, the customer added Archive and, obviously, when I send the RequestSearch to UCS it does not return the mails in Archive.
A part of my code:
[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]

[b]Is there any way that UCS can be asked for interactions in Archive?[/b]

I already saw that RequestInteractionListGet allows you to specify if you want to search in UCS or Archive, but I could not filter by FromAddress or some other fields that I am searching.

Maybe there is a way to keep my search format and UCS include Archive interactions.

Thank you.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Searching UCS and Archive with PSDK.
« Reply #1 on: August 15, 2017, 05:42:24 AM »
No, as the archived interactions are not indexed by the UCS. Only way is to build your own index or search engine for UCS archive part of the data.

Offline ricardo.sosa

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
Re: Searching UCS and Archive with PSDK.
« Reply #2 on: August 16, 2017, 11:48:06 AM »
Hello Kubig,

Thank you for your answer.

Do you mean accessing directly to the database?

Do you know how this RequestInteractionListGet works? And the Contact tab in IWS that allows to search for Archive interactions?

Thanks again.

Ricardo.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Searching UCS and Archive with PSDK.
« Reply #3 on: August 21, 2017, 11:35:33 AM »
If you want to use fullsearch then you cannot use UCS query as the archive database is not indexed. So, you can use direct database access or index this database by yourself.