afs_web_alert - AFS - Reference Guides

AFS Filters Description

Product
AFS
AFS_Version
7.11
Category
Reference Guides
language
English

The afs_web_alert filter is used to create a report listing the modified url, after a crawl.

The filter is declared with the afs_web_alert type. It is in the antidot-paf-crawl package. It is a visitor filter.

This filter will only work if instanced after the afs_web_crawl filter.

This filter can be instantiated only once at any given moment. It will not read the "instances" parameter in the configuration.

The Web Alert filter specifications are described in the following table:

Parameter name

Mandatory

Type

Default

Description

output_folder

No

directory

$AFS7

Output folder for the report.

input_layer

No

layer

CONTENTS

Layer on which modifications are checked.

exclude

No

list

N/A

Url to exclude from the report.

Note: This filter only works if instanced after an afs_web_crawl filter.
Filter output example (web_alert_"date_and_hour".xml file):
<afs:Alerts xmlns:afs="http://ref.antidot.net/v7/afs#" PaFId="2" start="2012-05-31T16:56:51+0200" end="2012-05-31T16:57:52+0200" nbNew="1" nbModified="1">
    <afs:alert uri="http://<host_name>/paf/api/javadoc/net/antidot/paf/GeneratorFilter.html" date="2012-05-31T16:57:15+0200" status="modified"/> 
    <afs:alert uri="http://<host_name>/search?afs:check=true" date="2012-05-31T16:57:43+0200" status="new"/>
</afs:Alerts>
This output means the first document is new in this crawling session, and the second is an old one which was updated. The afs_web_alert output XSD (http://ref.antidot.net/v7.5/alerts.xsd) is available.