Matches query terms against alert content using the Prewave test API.
- Fetches query terms once from
testQueryTerm - Fetches alerts N times from
testAlerts(default: 100 — the endpoint returns different data each call) - For each alert, checks whether any query term occurs in a content field of the same language
- Emits unique
alertId,termIdpairs — no duplicates across iterations
Matching rules (per keepOrder flag):
keepOrder=true— all words of the term must appear consecutively in that orderkeepOrder=false— all words must appear somewhere in the text, in any order
mvn package -DskipTests
java -DapiKey=<your-key> -jar target/AlertTermExtraction-1.0-SNAPSHOT.jarOr pass the key as an environment variable:
API_KEY=<your-key> java -jar target/AlertTermExtraction-1.0-SNAPSHOT.jarOverride iteration count:
java -DapiKey=<your-key> -Diterations=50 -jar target/...jarUnit tests (no API key needed):
mvn testIntegration test against the real API:
mvn test -Dtest=ExtractionIntegrationTest -DapiKey=<your-key>