When you run a Query
, Suggest
, or SuggestOnText
action, you can highlight sentences or words in the results that are related to the terms in the query (or the terms in the text or document that you are suggesting on).
IDOL Server checks which fields highlighting applies to and then highlights all sentences or words that are based on the terms in the results that it returns.
Open the IDOL Server configuration file in a text editor.
List a highlighting process in the [FieldProcessing]
section. For example:
[FieldProcessing] 0=MyFirstProcess 1=HighlightFields
Create a section for each process that you listed, and in each section, create a property for the process (you define the property later by setting one or more applicable configuration parameters). Identify the fields that you want to associate with the process.
Note: The properties that you create must not have the same name as the processes.
For example:
[MyFirstProcess] Property=MyProperty PropertyFieldCSVs=*/MyField,*/MyOtherField [HighlightFields] Property=Highlight PropertyFieldCSVs=*/DRETITLE,*/DRECONTENT
Create a section for the property in which you set the HighlightingType
parameter to True
. This enables the highlighting of all matched terms that are contained in the associated PropertyFieldCSVs
fields. For example:
[Highlight] HighlightType=True
Save and close the configuration file. Restart IDOL Server for your changes to take effect.
Note: In a stand-alone configuration where you run the View server separately, you must specify the Content host and port in the [Server]
section of the View configuration file.
|