Use the following procedure to return summaries with query results.
Send a Query
, Suggest
, or SuggestOnText
action to IDOL Server that includes the Summary
parameter. Set the Summary
parameter to the type of summary that you want to return for results (Concept
, Context
, Quick
, ParagraphConcept
, or ParagraphContext
). For example:
action=Query&Text=Undulant fever&Summary=Concept
Each result of this query returns with a conceptual summary.
Optionally, make the following settings in the IDOL Server configuration file, depending on the type of summary that you want to generate:
For Concept, Context, or Quick summaries. Use the SourceType
property to specify the fields to generate the summary from.
For Concept or Context summaries. In the [Summary]
section, set the MinWordsPerSentence
parameter to the minimum number of words that a sentence must contain to consider it as a sentence for the summary.
For Context summaries. In the [Server]
section, set the ContextSummaryQueryTermWeight
parameter to the weight that it must use for the terms in user queries. The context summary gives this weight to sentences that contain terms in common with the query text. The other terms are given their APCM weight.
Save and close the configuration file. Restart IDOL Server for your changes to take effect.
Note: If you remove fields from the Source fields list, you must first perform a DREINITAL
index action and then reindex the content into the IDOL Server. You cannot remove source fields after you index the data.
|