Author Topic: Matching Lower Case and Upper Case data in Search  (Read 2508 times)

rstockton

  • Guest
Matching Lower Case and Upper Case data in Search
« on: January 15, 2015, 12:20:12 PM »
Is there any way to configure OnDemand to match Upper Case to Lower Case data in a search?  It appears that Index information given in a search has to match the case of the data that was loaded.  Example data was loaded with Index information ABC and the search criteria was entered as abc or Abc and the search result comes back as not found.

Thanks,

Russell

ewirtz

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Matching Lower Case and Upper Case data in Search
« Reply #1 on: January 16, 2015, 01:26:28 AM »
Hi Russel,
beginning with DB2 V10 you can create an index like:
CREATE INDEX qual.tablex1
  ON qual.table
  (lower(attr,' ') asc );

Of course this has to be done within DB2. Ondemand does not support this

regards

Egon

Greg Ira

  • Full Member
  • ***
  • Posts: 240
    • View Profile
Re: Matching Lower Case and Upper Case data in Search
« Reply #2 on: January 16, 2015, 06:06:11 AM »
Try defining the field in the application group as either Upper or Lower case.  If you use mixed you are required to match cases when searching.

rstockton

  • Guest
Re: Matching Lower Case and Upper Case data in Search
« Reply #3 on: January 16, 2015, 08:23:11 AM »
Thanks Greg, I defined the fields as UPPER and that worked. 

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: Matching Lower Case and Upper Case data in Search
« Reply #4 on: March 18, 2015, 09:41:01 AM »
Hi Russel,
beginning with DB2 V10 you can create an index like:
CREATE INDEX qual.tablex1
  ON qual.table
  (lower(attr,' ') asc );

Of course this has to be done within DB2. Ondemand does not support this

regards

Egon

Well you are right, from a standard way CMOD doesn't support this, BUT you can do it through the table space user exit. And it will involved some C/C++ programming skills.
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML