
The second step of creating a presentation application is to select trigger and test URLs. This step determines which pages your application displays search results for, and provides up to ten URLs to test your display code.
Trigger URL Pattern — Specifies a URL pattern to match against search results and trigger your presentation application. Since many presentation applications depend on data services that extract data from web pages with a particular structure, you must scope your application to trigger only against those pages.
You may begin and end your pattern with a wildcard, "*", which
matches any string. For example, *.wikipedia.org/wiki/*
triggers your data service for all Wikipedia pages, while
en.wikipedia.org/wiki/* triggers only for Wikipedia pages
in English. The http:// is optional.
![]() |
Note |
|---|---|
Since users may have multiple applications in their search preferences, what happens if two or more Enhanced Result applications trigger off of the same URL pattern? In a user's search preference screen, there is an ordering to the user's chosen applications. The Enhanced Result application at the top of the list "wins", and all other Enhanced Result applications automatically display as Infobars. |
Add Test URLs — Specifies up to ten URLs to test your data service against. You can use these URLs in later steps to verify that your data service is extracting data correctly. Be sure to provide URLs that match your specified Trigger URL Pattern.
As you select or tab to the next field, SearchMonkey verifies
that the URL you specified is reachable. If the test URL is
reachable, SearchMonkey displays "Reachable URL" in
green, or possibly a 301 HTTP code. If the test URL is
unreachable, SearchMonkey might display a timeout message,
"Unreachable URL - Operation timed out after 5000 milliseconds
with 0 bytes received" or an error message "Non 200
HTTP code - Recieved: ,
where http_code" is typically
a http_code404 or a 50x. If you receive an error
code or timeout, check the test URL in your own browser, and select
a different URL if necessary.
— Retrieves ten random URLs that match the specified Trigger URL Pattern, overriding any test URLs specified manually. SearchMonkey verifies that all ten URLs are reachable, as above.
— Saves your changes and continues to “Step 3: Data Services”.
— Saves your changes and returns to “Step 1: Basic Info”.
— Returns to the Application Dashboard.
At the bottom of the screen is the Preview Pane, which enables you to view your presentation application as it acts on your test URLs. To display anything useful in the Preview Pane, you must first choose data services and map data to the presentation layer. For more information about the Preview Pane, refer to “Step 4: Appearance”.