HTDBDoc

Name

HTDBDoc -- describes a query to fetch a document content from an SQL source

indexer.conf

Description

Using HTDBDoc and the other HTDB related commands is described in details in the Section called Indexing SQL tables (htdb:/ virtual URL scheme) in Chapter 6.

Scope

HTDBDoc affects all following Server commands, until the end of the configuration file, or until the next HTDBDoc command.

Examples


HTDBList "SELECT id FROM messages"
HTDBDoc "SELECT title, body FROM messages WHERE id='$2'"
Server htdb:/messages/
    

See also

HTDBAddr, HTDBLimit, HTDBList, UserCacheQuery.