Sybase Search supports these types of metadata fields:
TEXT – corresponds to any metadata field that contains words or characters. When TEXT metadata values contain numbers or dates, the values are treated as words.
There are two special, internal text parsers that can be assigned to text metadata fields:
TEXT_STANDARD – parses text metadata in the same manner as text content.
TEXT_FILENAME – parses document paths.
TEXT metadata fields do not support range searching
DATE – corresponds to any metadata field that can be parsed into a date. The exact parsing of the date depends on the date parser’s settings. For example, the parser may have the format DD/MM/YYYY or YY-MM-DD.
DATE metadata fields support range searching.
FLOAT – corresponds to any metadata field that can be parsed into a numeric value. The exact parsing of the numeric value depends on the parser’s settings.
FLOAT metadata fields support range searching.
INT – corresponds to any metadata field that can be parsed into an integer value. The exact parsing of the numeric value depends on the parser’s settings. For example, the com.isdduk.text.IntegerParser parser attempts to convert a metadata string value to an integer, while com.isdduk.text.B2KBIntParser parser attempts to convert a metadata value to an integer and then divide the result by 1024 to get the value expressed in terms of kilobytes (KB) instead of bytes (B).
INT metadata fields support range searching.
Different metadata parsers are available for supporting each of these types, which format or modify metadata values in different ways. For example, different DATE parsers parse the date values depending on the format specified.
Adding
new metadata fields
Click Configuration.
Click Metadata Fields.
Click Add a new metadata field.
Complete these fields:
Field |
Description |
---|---|
Name |
Indicates the name of the metadata field inside the document. |
Display Name |
Indicates the name to be displayed on the search page. |
Type |
Indicates whether the metadata type is TEXT, DATE, FLOAT, or INT. |
Index Parser |
Indicates an existing index parser for the metadata field. |
Query Parser |
Indicates an existing query parser for the metadata field. |
Indexable |
Indicates whether the metadata field should be indexed or not. |
Click Create.
Editing
metadata fields
From the Metadata Configuration Summary page, click Metadata Fields.
Click Edit for the field you want to change. You can edit the Display Name, Query Parser, and Indexable field properties.
Make the changes and click Save Changes.
Removing
metadata fields
From the Metadata Configuration Summary page, click Metadata Fields.
Click Remove for the field you want to delete. You are prompted to confirm whether you want to delete the metadata field.
Click OK to confirm the removal.