Results > Customize Results > Change the Field Display > Display Document Fields

Display Document Fields
You can configure IDOL server to display specific document fields whenever it returns query results. Alternatively, you can specify the document fields that IDOL server returns when you execute an individual query.
Configure IDOL server to Always Display Specific Fields
To display specific document fields every time IDOL server returns query results, create a field process in the IDOL server configuration file that identifies the document fields you want to display. After you create this field process, the fields you identified always display when IDOL server returns query results (provided the query action Print parameter is set to Fields, which is its default value).
To configure IDOL server to always display specific fields
1.
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 (a property is later defined by one or more applicable configuration parameters). Use the PropertyFieldCSVs parameter to identify the fields that you want to display.
 
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.
Every time you execute a Query, Suggest, SuggestOnText or GetContent query, IDOL server now returns SUMMARY and DRECONTENT field of the result documents, in addition to the metafields 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 execute a Query, Suggest, SuggestOnText or GetContent query action.
 
Allows you to specify the type of field to display in addition to the fields that IDOL server displays by default (that is, the fields it displays out-of-the-box and the fields that IDOL server has been configured to display automatically).
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 IDOL server configuration file.
 
Allows you to specify the fields to display for all results. This overrides any fields that were set up in the IDOL server configuration file to automatically display for all results (the fields that IDOL server displays out-of-the-box are still 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 specified query text. Each result returns with its Author and Title fields in addition to the fields that IDOL server displays out-of-the-box.
Related Topics 
*