blending.cfg
blending.cfg is used to define the set of synonyms that apply when query blending is enabled.
Background
Query blending allows multiple variants of a query to be run and then blended into a single result set. Query blending can be performed based on a number of sources as defined in the -qsup query processor option. This file defines the blending rules to be applied.
Usage
blending.cfg can be created from the configuration file manager for a results page.
blending.cfg must be used in conjunction with the -qsup=SYNS query processor option - entries in blending.cfg may be different from those in synonyms.cfg.
Format
A text file, beginning with a line indicating the version number of the thesaurus (currently there is only one available). Each subsequent line indicates an entire query or query term that will be expanded into a different query or query term, with the resulting query being blended with the initial one. Each line is then:
TYPE=QUERY/TERM=EXPANSION
where TYPE is a character indicating the type of expansion:
- 
+indicates a whole of query expansions
- 
%indicates a term by term expansion
- 
~indicates a regular expression expansion
Example
PADRE Thesaurus Version: 2 (1) %=color=colour (2) +=Department for Administrative Affairs=DAA (3) ~=w.*the.*=green (4)
| 1 | This header line must be the first line of the blending.cfg file | 
| 2 | Any occurrences of colour in a query will also be queried with color | 
| 3 | The exact query Department for Administrative Affairs will also be blended with results for the query DAA | 
| 4 | The query where are the documents will be blended with results for where are the documents and green |