afs:region_matching - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.9
Category
Reference Guide

Role

Sets the behavior of how to filter documents based on their language and the afs:lang query parameter.

It takes the following modes:

  • afs:region_matching=strict means the query will only match documents with the specified region code. Default mode.
  • afs:region_matching=ignored means the query will ignore the region element when returning documents. All documents matching the lang are potential matches regardless of the region. For thesauri and other analyzers, the provided region (or the default if none is provided) is used.
  • afs:region_matching=inclusive means the query will match documents with the same region as well as documents with the default region.

Status

Optional. Defaults to "strict".

Example

afs:lang=fr-FR&afs:query=Victor&afs:region_matching=ignored

Default region parameter is PaF/Lang/DefaultRegions.

Compatibility impact. If the default region is changed, a full reindexing is required for the modification to be taken into account.