Open topic with navigation

# Display Document Fields

You can configure HPE IDOL Server to display specific document fields whenever it returns query results. Alternatively, you can specify the document fields that HPE IDOL Server returns when you perform an individual query.

## Configure IDOL Server to Always Display Specific Fields

To display specific document fields every time HPE IDOL Server returns query results, create a field process in the HPE IDOL Server configuration file that identifies the document fields that you want to display. After you create this field process, the fields that you identified always display when HPE IDOL Server returns query results (provided that you set the query action `Print` parameter to `Fields`, which is its default value).

To configure HPE IDOL Server to always display specific fields

1. Open the HPE IDOL Server configuration file in a text editor.

2. In the `[FieldProcessing]` section, list a new field process whose name indicates that the process identifies which fields are displayed.

   For example:

       [FieldProcessing]
       0=MyFirstProcess
       1=PrintFields

3. Create a section for the new field process that you listed, in which you create a property for the process (you define the property later by setting one or more applicable configuration parameters). Use the `PropertyFieldCSVs` parameter to identify the fields that you want to display.

   Note: The property that you create must not have the same name as the process.

   For example:

       [PrintFields]
       Property=Print
       PropertyFieldCSVs=*/SUMMARY,*/DRECONTENT

4. Create a section for the property in which you set the `PrintType` parameter to `True`. This displays the associated `PropertyFieldCSVs` fields for query results. For example:

       [Print]
       PrintType=True

5. Save and close the configuration file. Restart HPE IDOL Server for your changes to take effect.

Every time you perform a `Query`, `Suggest`, `SuggestOnText`, or `GetContent` query, HPE IDOL Server now returns `SUMMARY` and `DRECONTENT` field of the result documents, in addition to the metafields that it displays by default.

## Display Specific Fields for Individual Queries

To return specific document fields for individual queries, use the `Print` or `PrintFields` action parameters when you perform a `Query`, `Suggest`, `SuggestOnText`, or `GetContent` query action.

- `Print`. Use one of the following options to determine the types of fields to display:

  `All` | All XML fields. Note: This option does not display temporary fields that you create in a `Query` action by using the `UserMetaFields` parameter. To display those fields, you must list them in the `PrintFields` parameter.
  `AllSections` | All fields, and all sections in section breaking fields.
  `Date` | Fields with the `DateType` property.
  `Fields` | Fields with the `PrintType` property.
  `Index` | Fields with the `Index` property.
  `IndexText` | The contents of fields with the `Index` property.
  `NegativeFields` | All fields, except those listed in the `PrintFields` action parameter.
  `None` | The first reference field only.
  `NoResults` | No results or fields. The query returns only the number of hits.
  `Parametric` | Fields with the `ParametricType` property.
  `Reference` | Fields with the `ReferenceType` property.
  `Source` | Fields with the `SourceType` property.

  For example:

      http://12.3.4.56:4000/action=Query&Text=Hogwarts school of witchcraft and wizardry&Print=Index

  This query returns results that are conceptually similar to the specified query text. Each result returns with fields that were set up as `Index` fields in the HPE IDOL Server configuration file.

- `PrintFields`. A list of fields that you want to display in the results.

  If you also set `Print`, `Print` generally takes precedence. However:

  - when you set `Print` to `Fields`, only the specified `PrintFields` are displayed.

  - when you set `Print` to `NegativeFields`, the specified `PrintFields` are not displayed.

  For example:

      http://12.3.4.56:4000/action=Query&Text=Hogwarts school of witchcraft and wizardry&PrintFields=Author,Title

  This query returns results that are conceptually similar to the specifid query text. Each result returns with its `Author` and `Title` fields.

Related Topics

- Display Online Help

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm