A
style
.dft
file is referred to as a document format file, since this file contains specifications that override the default virtual document definition. The dispatch field consists of the text of the document which begins in row one, column one of the display.style.dft
file in the style directory used for creating your collection.style.dft
file that contains any fields other than a single dispatch field, and the dispatch field is filtered, your application will be unable to get the raw binary stream from the Verity engine. style.dft File Syntax
A sample style
.dft
file called wsjstyle
.dft
, is shown below. The sample file illustrates how to add Verity collection fields to the document layout. In this case, the document layout includes these elements:
- # wsjstyle.dft
- #
- $control: 1
- dft:
- /fill = no
- {
- field: Source # displays the Source field
- /row = 1 # 1st row
- /col = 5 # 5th column
- field: Title # displays the Title field
- /delta-row = 1 # start on 2nd row
- /col = 5 # start in 5th column
- field: DOC # start display of doc text
- /delta-row = 1 # start on 3rd row
- /col = 1 # start in 1st column
- }
- $$
style.dft
file above, the Verity engine invokes the ASCII filter.
style.dft
file syntax for statements is provided below.
style.dft
file syntax for keywords is provided below.
zone-begin
and zone-end
combination. You can use instead the /zone
construct. For example, as an alternative to the following:
- zone-begin: zname
- field: fname
- zone-end: zname
- field: fname
- /zone = zname
style
.dft
file keywords can include one or more modifiers described below. The dft
statement can have a maximum of three modifiers, and there are several more modifiers available for the keywords.The modifiers available for the
dft
statement are also available for the keywords. The modifiers for the dft
statement are global variables for the keyword elements. If a modifier for a keyword exists also as a modifier for the dft
statement, the keyword modifier takes precedence.
style.dft
file is a date field, you must use the same date output format for both indexing and viewing. If you do not, you may have incorrect highlights (unless your retrieval client uses dynamic highlighting).
style.dft
is not read until the field element is actually inserted into the stream. This enables field values populated by gateways and filters, such as HTML META tags and Microsoft Office properties, to be added to the document stream following the text of the main document.It is not possible to capture the values of the VdkSummary and VdkFeatures field in the virtual document because these fields are generated after the entire virtual document has already been streamed.