query-gscopes.cfg
Introduction
Name
query-gscopes.cfg
Location
~/conf/collection/
Description
Maps documents which match a query to a gscope.
Background
gscopes can be used in numerous ways to narrow down searches to particular sub-parts of a collection. The query-gscopes.cfg
file is used to set specified gscope flags on all documents which match the queries specified within the file.
Format
A text file, with one gscope followed by a query expression per line. The query expression must be a valid Funnelback search query. Each line is:
(gscope) (query to run)
Examples
Set gscope org
on documents containing the term enterprise or organisation, and gscope public
on documents containing both public and internet.
org [enterprise organisation]
public public internet
Note that the same gscope may be specified multiple times with different queries if necessary.
See also
- Gscopes which allows gscopes to be set based on URL patterns rather than queries