>
Main -> Documentation -> Database Builder – Newton -> Creating a New SiteSearch Database -> Database Description (.dsc) File: Structure and Syntax -> Database Description (.dsc) File Example

Database Description (.dsc) File Example

This document contains an example of a database description (.dsc) file. The various sections that make up a .dsc file are labeled with section headings that are included in the example below as comments. Use this example in conjunction with the .dsc reference pages to create your own database description file.

Note:

The individual .dsc reference pages linked to below contain specific syntax information and guidelines for each section of the .dsc file. It is recommended that you read these pages carefully to create a functional .dsc file.

Syntax Notes

Pay close attention to the following syntax elements as you create your .dsc file and examine the example below:

  • Comments are denoted with "/*" and "*/" to begin and end the file documentation.
  • The "\" symbol shown below acts as a line continuation marker to break long lines of text in a file.
  • When listing multiple tag paths, or field ids, in the .dsc definitions, separate each tag path with a comma followed by a blank space.
  • The first field id listed in an index definition should start at the beginning of the line or directly after file documentation - DO NOT include a blank space before the field id, but do include a comma followed by a blank space after it.

Example

/**********************************************/
/* DATABASE IDENTIFICATION */
/**********************************************/



DB: CATA



/**********************************************/
/* DATABASE FILE DEFINITIONS */
/**********************************************/



HEDR: HEDR/4096/190
HDIR: HDIR/2048/30
POST: POST/2048/270
PDIR: PDIR/4096/30
INDX: INDX/2048/180



/**********************************************/
/* PLURAL ENDINGS DEFINITIONS */
/**********************************************/



pluralendings: "s", "es"



/**********************************************/
/* TERM ADJACENCY DEFINITIONS */
/**********************************************/



short pos
char fldid



/****************************************************/
/* INTERNALACCNINDX and INTERNALACCNTAG DEFINITIONS */
/****************************************************/



internalaccntag: 001
internalaccnindx: 05



/**********************************************/
/* RESTRICTOR DEFINITIONS */
/**********************************************/



/*restrictor bit string size*/
restrictsize: 2



/*restrictor based on year normalized from 1900*/
restrict(06): year_strct(3) from(260/03) \
mask(1111111110000000) \
norm(1900)



/*restrictor based on language*/
restrict(07): lang_strct(2) from(008) \
mask(0000000001100000) \
terms("english", "nonenglish")



/**********************************************/
/* INDEX DEFINITIONS */
/**********************************************/



/*Keyword routine*/
index(01): words() from(\
/* 245 */245/01, 245/02, 245/03, 245/08, \
/* 246 */ 246/01, 246/14, 246/16, 246/02, \
/* 260 */ 260/01, 260/02, \
/* 500 */ 500/01, \
/* 505 */ 505/01, \
/* 520 */ 520/01, \
/* 530 */ 530/01, \
/* 700 */ 700/01, \
/* 710 */ 710/01, \
/* 730 */ 730/01, \
/* 856 */ 856/01, 856/19, 856/26\
) with(fldid, pos)



/*Plural keyword routine*/
/* Titles */
index(02): plural words() from(\
/* 245 */245/01, 245/02, 245/03, 245/08, \
/* 246 */ 246/01, 246/14, 246/16, 246/02, \
/* 505 */ 505/01\
) with(fldid, pos)



/*Keyword routine*/
/* Authors/Editors/Compilers */
index(03): words() from(\
/* 100 */100/01, 100/17, 100/02, 100/03, 100/04, 100/05, 100/14, \
100/21, 100/11, \
/* 110 */ 110/01, 110/02, 110/14, 110/03, 110/04, 110/05, 110/21, \
110/11, \
/* 111 */ 111/01, 111/17, 111/14, 111/03, 111/04, 111/05, 111/21, \
111/11, \
/* 700 */ 700/01, 700/17, 700/02, 700/03, 700/04, 700/05, 700/21, \
/* 710 */ 710/01, 710/02, 710/14, 710/04, 710/03, 710/05, \
/* 711 */ 711/01, 711/17, 711/14, 711/04, 711/03, 711/05\
) with(fldid, pos)



/*Keyword routine - Sparse index*/
/* OCLC Numbers */
index(05): sparse() words() from(\
/*001*/001)



/*Keyword routine*/
/* Publication date */
index(06): words() from(\
/* 260 */260/03\
) with(fldid, pos)



/*Phrase routine - Sparse index*/
/* Language */
index(07): sparse marcla() from(\
/* 008 */008\
) with(fldid, pos)



/*Phrase routine*/
/* Subjects (phrase) */
index(08): phrase2() from(\
/* 600 */600/01, 600/02, 600/24, 600/25, 600/26, \
/* 610 */ 610/01, 610/02,610/24, 610/25, 610/26, \
/* 650 */ 650/01, 650/02, 650/24, 650/25, 650/26, \
/* 651 */ 651/01, 651/02, 651/24, 651/25, 651/26)



/*Keyword routine*/
/* electronic location and access */
index(09): words() from(\
/* 856 */856/01, 856/19, 856/26\
) with(fldid, pos)



/**********************************************/
/* SYNONYMS DEFINITIONS */
/**********************************************/



begin synonyms



english/07: eng;
documentation/01: doc;
technical/01: tech;
WWW/08: web, W3;



end synonyms



/**********************************************/
/* STOPWORDS DEFINITIONS */
/**********************************************/



begin stopwords



a
an
and
are
as
at
be
but
by
for
from
had
have
her
his
in
is
it
not
of
on
or
that
the
this
to
was
which
with
you



end stopwords

See Also

Creating a Database Description (.dsc) File
Database Description (.dsc) File: Structure and Syntax


[Main][Documentation][Support][Technical Reference][Community][Glossary][Search]

Last Modified: