mnoGoSearch 3.2.33 reference manual: Full-featured search engine software
Prev |  | Next

# Section

## Name

Section -- defines document's section

indexer.conf

## Synopsis

Section {name} {number} {maxlen} [cloneflag] [separator] [{expression} {replacement}]

## Description

Where "string" is a section name and "number" is section ID between 0 and 255. Use 0 if you don't want to index some of these sections. It is better to use different sections IDs for different documents parts. In this case during search time you'll be able to give different weight to each part or even disallow some sections at a search time. maxlen argument contains a maximum length of section which will be stored in database.

"cloneflag" is a flag describing whether the section should affect clone detection. It can be "DetectClone" or "cdon", or "NoDetectClone" or "cdoff". By default, url.* section values are not taken in account for clone detection, while any other sections take part in clone detection.

"separator" is a string that separates section. This is useful for attribute sections.

"expression" and "replacement" can be used to extract user defined sections.

## Examples

    Section body                    1       256
    Section title                   2       128
    Section meta.keywords           3       128
    Section meta.description        4       128
    Section header.server           5       64
    Section url.file                6       0
    Section url.path                7       0
    Section url.host                8       0
    Section url.proto               9       0
    Section crosswords              10      0
    Section Charset                 11      32
    Section Content-Type            12      64
    Section Content-Language        13      16
    Section attribute.alt           14      128
    Section attribute.label         15      128
    Section attribute.summary       16      128
    Section attribute.title         17      128
    Section References              18      0
    Section Message-ID              19      0
    Section Parent-ID               20      0
    Section MP3.Song                21      128
    Section MP3.Album               22      128
    Section MP3.Artist              23      128
    Section MP3.Year                24      128
    Section CachedCopy              25      64000
    Section attribute.face          27      0

    Section attribute.title         28      0 "."
    Section h1                      29      128 "<h1>(.*)</h1>" $1

Prev | Home | Next
Robots | Up | Server