How to: |
Next, you must configure a Service object to define the metadata that will identify the fields in the incoming XML document that you want to appear in the Categorization Tree, as well as the field or fields that will uniquely identify the record when it is indexed.
The metadata parameters you will use are FXVn and FXKn. Keeping with the example in Overview of Implementing Magnify, we will define metadata parameters for Brand, Category, Color, Department, Gender, Price Range, Promotion, Sports, and Style. And the identifier will be product ID.
You can use multiple identifiers for a record, if necessary. For example, if you were indexing employee information, you could use the last name of the employee as the unique identifier, or you could use the last name and the first name to ensure there would be no duplicate records. To define multiple identifiers, use the parameters FXK, FXK2, FXK3, FXK4, and so on. (The FXK parameter implies FXK1.)
You can also specify multiple values for a field by using the FXMn parameter. FXMn is used in place of FXVn when using multiple values and contains a unique delimiter that is used to assign each value its own category in the dynamic categorization tree. The delimiter can be any value, but it should be unique and not used in the field value. You must use delimiter as the metadata parameter name to define the delimiter value. The delimiter value is defined once and applied to all FXMn meta tags in the Service Object. Therefore, the delimiter must be the same for all FXMn values.
Note: The FXMn metadata parameter is not available in the Magnify Prototype Wizard.
To store metadata values:
Using our example, the object name is Store Values.
The Service Type dialog box opens.
Important: This is not an arbitrary name. XDSREGAgent is the exact name of the class.
The following image shows the Service Type dialog box with the class name field populated.
The Properties dialog box opens, as shown in the following image.
The User Defined Properties dialog box opens, as shown in the following image.
In this dialog box we can identify and the specific which metadata from the incoming XML document you want to appear in the Dynamic Categorization search results tree using the following metadata parameters:
For example, the following image shows several FXM values and a ZXZ delimiter value specified by the delimiter user-defined property name:
Note: The FXM metadata parameter is not available in the Magnify Prototype Wizard.
For more information on metadata parameters, see Magnify Search Configuration Example.
Note: An XML Path Language (XPath) expression defines the path to a specific value (or values) within an XML document. This path is based on the hierarchal structure of the XML document. This step ties the property name (FXVn) to the location in the XML file that holds the property value (the XPath expression).
The XPath Builder wizard opens.
The XML document appears in the document pane. The following image shows an XML document in the Load a document instance dialog box.
The Build an XPath dialog box opens.
In our example, we want to include the value of Brand, therefore, expand the RetailDB node, and select the Brand field, retaildb.Brand.
The following image shows an XML structure in the left pane with the Brand element selected for the XPath expression.
Using our example, the path to the Brand element appears in the XPath field, and the Brand element value and occurrence in the XML document appears in the right pane.
The XPath expression appears in the Value field, as shown in the following image.
With the FXV1 parameter, we have identified an item we want to appear in the Dynamic Categorization tree by locating the XML field where it resides.
The subsequent parameter names for our example field values are:
FXV2 with a value of an XPath expression pointing to the retaildb.Category field.
FXV3 with a value of an XPath expression pointing to the retaildb.Color field.
And so on, through to FXV10 pointing to the retaildb.Style field.
In our example, the productid is the unique identifier of this record.
Note: The order in which you enter the values and the key identifier is not critical. However, the FX meta tags must be in sequential order. If a set of FX meta tags are removed, the remaining meta tags must be renumbered. Otherwise, the links on the Dynamic Categorization tree will produce an error.
The following images shows the User Defined Properties dialog box with our example of ten defined parameters and their unique identifier.
The following image shows the process flow with the Store Values object.
Continue creating the process flow using the instructions found in Creating the HTML Document.
WebFOCUS |