Add field to CMOD Application Group

Previous topic - Next topic

jg

I hope this question is not too trivial...
Is there a way to add a field to an existing (and already in use) Application Group?

Thanks!

Jochen

jeffs42885

In my experience..copy

example-

rename from jeff to jeff_a
copy jeff_a to jeff
relink folder fields
call it a day

Justin Derrick

In newer versions of CMOD, you can add a field to an existing Application Group, but that field will not become populated for previously loaded data, leading to strange situations when it comes to searching...

If you do a search that includes the new field, it will only find new documents, as the old documents have no value to search against in the new field.  Some of the old documents might match the search criteria, but that index data isn't available in the database, so it will be excluded from the results -- which your users probably aren't expecting.

Do a lot of testing in your Development regions first!

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

jg

I never played with the copy command. Does the copy include copying the data?

Regards
Jochen

rick

Data loaded in the old application group will not copied to the new one. Only the definition will be copied.

jg

That means, I would have to export all index data and documents from the 'old' AG and load them to the new AG?

rick

If you require data to be populated for the newly added field, then it is good to extract the data from the old AG and re-index to the new AG.

If you are ok to have the newly added field as blank, the simple way is to have the folder mapped with the old AG and new AG. So that data from both the AG will be displayed. However if you are going to make a search based on the new field, as JD mentioned the search results could be inconsistent in this approach.