Element parameters
These are the parameters of the document model elements:
- name
- You assign a name to the text field or document attribute for each definition.
The names enable you to restrict a search query to the content of a specific
text field or document attribute. Using the above examples, you could search
for documents containing the word structure in the text field named Abstract.
- start
- A boundary string in code page UTF-8 that marks the beginning of the
text field or document attribute. There are no rules for specifying boundary
strings; they can be any arbitrary UTF-8 string. Here are some examples: start="introduction:",
start="note!", start="$$...".
Nonprintable characters and the special XML
characters "<" and "&" must be specified using the standard XML escape
character ("<" for "<", and "&" for "&").
- end
- Optional. A boundary string in code page UTF-8 that marks the end of
the text field or document attribute. If you do not specify an end tag, the
next found start tag is assumed to be the end of the field. If no subsequent
start tag is found, the field extends to the end of the document, and no further
fields are identified.
- type
- The type of document attribute must always be "NUMBER". The parameter
does not apply to field definitions.
- exclude
- YES or NO. A parameter that determines whether the text in a field definition
should be excluded and therefore, not indexed. This parameter does not apply
to attribute definitions.
In the example, the field definition "head" would
be excluded, but definition "abstract" included.
Restrictions:
- There must not be two field definitions or attribute definitions having
the same start tag. However, a field definition and attribute definition may
have the same start tag and end tags.
- A start tag must not be a proper prefix of another. For example, you cannot
have a start tag "author" and a start tag "authority".
- Start tags and end tags must not be empty strings.
For information on the Document Type Definitions, see DTD for document models.
For additional restrictions, see Limitations for text fields and document attributes.