Genesys CTI User Forum > Genesys-related Development

Building The Search Functionality

(1/8) > >>

upk_singhm:
Hi All,
I have a PSDK based agent application and I am trying to build search module for the eServices module to fetch records based on certain criterion:
1. Email To.
2. Email From.
3. Subject.

and a few other criterion, now I am able to get the search result from the Interactions using the Subject/Date/Custom Business attributes, BUT NOT Email To and Email From, has anyone done any work in this regard.

Any help is much appreciated to help identify how to fetch emails if search is based on Email To and Email From parameters.

Let me know if any details are required.

Regards,

Kubig:
You can use Apache Lucene for these purposes. All records are indexed by this software.

upk_singhm:
Hi Kubig,
Thanks for the quick response, can you throw some more light on this, I am using .NET for this application.

Regards,

Kubig:
UCS is using Apache Lucene SW for indexing and searching. So, you can use this API (there exists a DLL for Lucene on .net platform, IWS is using it). I am using following code for querying the UCS content:
[code]RequestSearch reqSearch = new RequestSearch();
            reqSearch.IndexName = "interaction";
            reqSearch.Query = _query;[/code]where the query can be something like that:
[code]StringBuilder sb = new StringBuilder();
            sb.Append("MediaTypeId:email");
sb.AppendFormat(" AND StartDate:[{0}* TO {1}*]", FromDate, ToDate);
sb.AppendFormat(" AND EndDate:[{0}* TO {1}*]", FromDate, ToDate);
[/code]
etc.

upk_singhm:
Dear Kubig,
We tried using that and faced one challenge wherein we are not able to search for Business Attributes, let's say customer name or company name or ticket ID, if there's any. We are only able to search on the basis of system attributes like Email To, Email From, Subject, Date, Time. We also need to search on the basis of custom Business Attributes.

Do you have any ideas with that?

Regards,
Upkar S

Navigation

[0] Message Index

[#] Next page

Go to full version