Record Level Indexing: The Movie File

This section illustrates Magnify indexing by feeding the Movie file. The data has already been assigned to Magnify Meta Tags and other reserved alias names to create a Magnify index library based on Movie information.

  1. Open the Movie file to review all available data.
    1. In Developer Studio, create a project pointing to the sample directory, ibisamp, if not already created.
    2. Click the Procedures folder.
  2. Review the Movie File.

    Note: This file is installed with the WebFOCUS Reporting Server under the ibisamp application directory.

    1. Select the moviemgn.fex file.
    2. Right-click and select Edit in Developer Studio Tool.

    3. Review each Engine object by double-clicking on it.

      CONNECTION_ATTRIBUTES. Magnify location.

      BASEURL. WebFOCUS Procedure URL.

      MIME. Document type.

      DATASOURCE. Magnify index library destination directory.

    4. Review the Set object.

      Note: You must set the ASNAMES setting to MIXED in order to preserve case-sensitivity.

    5. Open the Define object, noting each Defined Field.

      TITLE_URL. One or more fields to dynamically build the main title drill-down link of each search result.

      LINK_DISPLAY_NAME1. One or more fields used as the string name used for the first additional link.

      LINK_URL1. One or more fields to dynamically build each search result's first additional drill-down link.

      S_HARDCODED. Optional hard-coded content to be included with the data being indexed, This can include values that are not otherwise found anywhere in the original data.

    6. In the Procedure Viewer, open the Report object and change the output format.
      • On the toolbar, click Options.
      • From the Output Format drop-down list, expand Styled Report Formats and select HTML Web document.
      • Click Apply and then OK.
      • Click Save and then Run.
      • Review how the data is modeled. Notice what mix of fields are used to define various Magnify elements by the naming conventions used in the column titles.

        Note: The column naming conventions are discussed in more detail in the following topic on indexing the car file.

      • Scroll over to the right to see all column names.

    7. Close the Developer Studio Viewer and Report Painter.
  3. Index the Movie File with Format Magnify.
    1. Open the Report object and change the output format.
      • In the toolbar, click Options.
      • From the Output Format drop-down list, expand Unstyled Report Formats and select Format Magnify (MAGNIFY).
      • Click Apply and then OK.
      • Click Save and then Run.
    2. Confirm that there are no errors. Note that upon execution, the Reporting Server will process the request by transforming the report output into the Magnify feed protocol (see the Magnify Developer's Guide).

      Note: If you receive an error, see Magnify Error Handling in the Magnify Developer's Guide.

    3. Close the Developer Studio Viewer.
    4. Close Report Painter.
    5. Close the Procedure Viewer window.
  4. Review the search-based application generated.
    1. Open an Internet browser.
    2. Confirm that the collections.xml file is set accordingly.
    3. Navigate to the Magnify search page:
      http://host:port/wfcontext_root/search

      where:

      host:port

      Is the machine name and port number where WebFOCUS is installed.

      wfcontext_root

      Is the WebFOCUS application root.

      Note: Sample or default URLs are for informational purposes only and may not resolve correctly, if at all.

      To return to the out-of-the-box Magnify configuration, restore the original version of the collections.xml file. Restart the application server or use the Refresh Collections option in the Magnify administration console.

      Go to:

      http://localhost:8080/ibi_apps/search
    4. Perform a search test by entering movies in the Search box and clicking Search.

    5. Review the results returned and identify how the data from the procedure has been applied to the Magnify search interface.
    6. Close the browser window.

WebFOCUS