Skip to main content

It worked

Congratulations! If you're reading this from your target repository โ€” a committed document, a search index, wherever minimum-config.xml pointed it โ€” you successfully ran the Norconex Web Crawler's minimum example.

This page exists to be crawled. It's the whole reason minimum-config.xml works out of the box: point it here, run it, and a committed document confirms the pipeline ran end to end. maxDepth is 0, so nothing else gets pulled in โ€” no other page changes what this example finds.

Pointing it at your own siteโ€‹

Two edits turn this into a crawl of your own content instead. First, the start reference:

<startReferences>
<ref>https://www.your-own-site.com/</ref>
</startReferences>

Then, once you're ready to crawl more than one page, keep it scoped to the part of the site you actually want:

<referenceFilters>
<referenceFilter class="GenericReferenceFilter">
<valueMatcher method="regex"
pattern="https://www\.your-own-site\.com/only-this-section/.*"/>
</referenceFilter>
</referenceFilters>

Nextโ€‹