DataparkSearch Engine 4.53: Reference manual
Prev | Chapter 4. DataparkSearch HTML parser | Next

# 4.6. Body patterns

If you need index not whole page, for example, to exclude navigation, ads, etc., you may use BodyPattern command to specify a pattern to extract content of a page for indexing. For example:

    BodyPattern "<!--content-->(.*)<!--/content-->" "$1"

this pattern will extract content between special comments and only that content will be indexed for this page.

You may specify several BodyPattern commands, but only the first match will be applied to a page. These patterns are trying to apply to all pages indexed. Beware, huge number of such body patterns may hurt indexing speed.

Prev | Home | Next
Comments | Up | Sub-documents