How to: |
As part of the Format Magnify indexing process, each search result is assigned a unique ID by the value assigned to the WF_INDEX_UNIQUE_KEY Magnify Meta tag. If no record in the index exists for the value assigned to WF_INDEX_UNIQUE_KEY, Magnify will add the record to the index library. Otherwise, Magnify will update the record, essentially overwriting the previous entry. The WF_INDEX_UNIQUE_KEY value can also be used to locate a search result in order to remove it from the index library. A deletion action can be defined at the procedure or global level to apply to all records, or on a record-by-record level.
Note: If the Magnify action is not defined, it defaults to the add action. That is why this is typically not required.
The Magnify action can be set at two levels, the feed level and the record level. The record-level value, if present, will always override the global-level value set for the overall Format Magnify procedure.
This procedure will illustrate how to set the action for the entire feed, while at the same time overwriting the feed-level action by setting the record-level action for only a specific set of records. Once complete, those records with the value ENGLAND will be updated in the index library while all other records are removed.
For information of where to locate the carmgn procedure, see Aggregated Indexing: The Car File.
IF CAR.ORIGIN.COUNTRY EQ 'ENGLAND' THEN 'add' ELSE ''
Note: S_HARDCODED must be the last PRINT field because it is a TX field.
http://localhost:8080/ibi_apps/search?proxyreload=1&clearcache=1 &collections=collections_myexample.xml
Note: Sample or default URLs are for informational purposes only and may not resolve correctly, if at all.
For more information, see How to View the Changes Made Using a URL Request.
Notice only the two records for England still exist and no other records are found, as shown in the following image.
Note: It can take a minute or two to refresh.
WebFOCUS |