" /> Search contact with dash returns 'No items' in WDE - Genesys CTI User Forum

Author Topic: Search contact with dash returns 'No items' in WDE  (Read 3609 times)

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Search contact with dash returns 'No items' in WDE
« on: May 19, 2015, 03:25:38 PM »
Advertisement
Hi,
Anyone faced the issue that searching some words with dash between them return no item in WDE Contact Directory?
example: I have a lot of contacts from a company called seas-nve but when I search for this nothing is returned.

From UCS logs I see:
[code]
17:15:59.434 Trc 21124 [SvcSrvW-10] <90> Request (queued for 0 ms):
  Id=90
  Type=Request
  AppName=Workspace_Desktop_1_Email_email_agent_5
  AppType=CfgInteractionWorkspace
  Service=Index
  Method=Search
  Parameters=
    [
      IndexName="contact"
      MaxResults=100
      Query="TenantId:102 AND (AccountNumber:seas\-nve* OR FirstName:seas\-nve* OR LastName:seas\-nve* OR Adresse:seas\-nve* OR Postnr:seas\-nve* OR City:seas\-nve* OR InstallationAdresse:seas\-nve* OR InstallationsPostNr:seas\-nve* OR EmailAddress:seas\-nve* OR PhoneNumber:seas\-nve* )"
      tkv.multibytes="false"
    ]
  UserData=
    [
    ].
[/code]

and the response is:
[code]
17:16:00.199 Trc 21125 [SvcSrvW-10] <90> Response:
  Id=90
  Type=Response
  AppName=es_ucs_p
  AppType=CONTACT_SERVER
  Service=Index
  Method=Search
  Parameters=
    [
      Documents=
      [
      ]
      FoundDocuments=0
      ReturnedDocuments=0
    ]
  UserData=
    [
    ].
[/code]
If I search for seas nve without the dash I get all the contacts listed.

My UCS version is 8.1.400.15

Regards,
Mihai

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: Search contact with dash returns 'No items' in WDE
« Reply #1 on: May 19, 2015, 03:55:46 PM »
I have just noticed that the Query having the back slash (seas\-nve*) comes for WDE. I don't know if that back slash should be there or not.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Search contact with dash returns 'No items' in WDE
« Reply #2 on: May 19, 2015, 04:19:20 PM »
Don't think so...hyphen is not a scape character.
Not on pc right now but check releases notes for newer versions of UCS and see if they mention something about it.
If not still good idea to go to last version available.
If still doesn't work you may have found a bug and need to open an eSR with Genesys

Offline catanirex

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 11
Re: Search contact with dash returns 'No items' in WDE
« Reply #3 on: May 20, 2015, 08:25:23 AM »
Hi,

Which version of UCS?
From 8.1 UCS used StandardAnalyzer instead of LowerCaseAnalyzer (as earlier)
In order to be able to search for symbols like "%'" - percent sign, for example - you must re-configure UCS and the Lucene indexes to use LowerCaseAnalyzer instead.
Please look in users guide/admin guide for details.

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: Search contact with dash returns 'No items' in WDE
« Reply #4 on: May 20, 2015, 03:09:17 PM »
catarinex has something here.
In the Lucene standard the - is a prohibit caracter and \ is an escape character. This means that the search should be OK. Still I don't get any responses.
I have created the options in UCS

[contact-field-analyzer]
StrAttribute2=LowerCaseAnalyzer
StrAttribute3=LowerCaseAnalyzer

[contactattribute-field-analyzer]
EmailAddress=LowerCaseAnalyzer

Unfortunatelly still no success. I think I will open a ticket for this

Thanks!

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: Search contact with dash returns 'No items' in WDE
« Reply #5 on: May 22, 2015, 09:25:58 AM »
I just a reply back from Genesys:

[i]I talked to Engineering about and it's related to Lucense index limitation (3rd party app) where it removes the character. Nothing can be done on genesys side.

n order to find, need to do for example for 'bburton@abc-co.com', search using 'bburton abc co com'[/i]

So I guess case is closed :)

Thanks!

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Search contact with dash returns 'No items' in WDE
« Reply #6 on: May 22, 2015, 12:24:31 PM »
Sucks lol
There is nothing on release notes as known issues

Offline Barn5ter

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
Re: Search contact with dash returns 'No items' in WDE
« Reply #7 on: May 28, 2015, 11:02:59 AM »
So I did a lot of work with WDE 8.5 and Interaction Search rather than Contact Search. One of the things that turned out to be a big issue when searching on anything was the default expression-url option under the interaction workspace section.

When doing a search this gets attached to all data used to search and because it is so lengthy and so long it can cause issues with the Lucerne indexes.

This is the default - brace yourself:
[code]
(?#Protocol)(?:(?:ht|f)tp(?:s?)\:\/\/|~/|/)?(?#Username:Password)(?:\w+:\w+@)?(?#Subdomains)(?:(?:[-\w]+\.)+(?#TopLevel Domains)(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?#Port)(?::[\d]{1,5})?(?#Directories)(?:(?:(?:/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|/)+|\?|#)?(?#Query)(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?#Anchor)(?:#(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)?
[/code]

By simply changing this to:
http(s)?\:\/\/

I got a massive improvement in my search results.

In later WDE versions Genesys have changed the default

Hope this helps.
« Last Edit: May 28, 2015, 12:23:56 PM by cavagnaro »