Sun Java System Portal Server 7.1 Technical Reference

Schema

When you click the Schema tab under Databases, you will get the Manage Search Schema page. This page lists the available Search Schema attributes. The schema determines what information is in a resource description and what form that information is in. You can add new attributes or fields to an RD and set which ones can be edited and which ones can be indexed. When importing new RDs, you can convert schemas embedded in new RDs into your own schema.

The table below lists the Search Schema attributes and their description.

Table 5–5 Search Schema Attributes

Attribute 

Description 

Author 

Author(s) of the document. 

Author-EMail 

Email address to contact the Author(s) of the document. 

Content-Charset 

Content-Charset information from HTTP Server. 

Content-Encoding 

Content-Encoding information from HTTP Server. 

Content-Language 

Content-Language information from HTTP Server. 

Content-Length 

Content-Length information from HTTP Server. 

Content-Type 

Content-Type information from HTTP Server. 

Description 

Brief one-line description for document. 

Expires 

Date on which resource description is no longer valid. 

Full-Text 

Entire contents of the document. 

Keywords 

Keywords that best describe the document. 

Last-modified 

Date when the document was last modified. 

Partial-Text 

Partial selection of text from the document. 

Phone 

Phone number for Author contact. 

ReadACL 

Used by Search servers to enforce security. 

Title 

Title of the document. 

URL 

Uniform Resource Locator for the document 

virtual-db 

Used to implement virtual database. 

When you select the checkbox preceding to a search schema attribute and click on it, the Edit search schema name page appears. This page displays all the attributes to edit a search schema attribute. The table below lists the attributes and their description to edit a search schema attribute.

Table 5–6 Edit Search Schema Attribute Attributes

Attribute 

Default Value 

Description 

Name 

Description 

Aliases 

Author 

Author(s) of the document 

Blank 

When you import new RDs, you can convert schemas embedded in new RDs into your own schema. You would use this conversion when there are discrepancies between the names used for fields in the import database schema and the schema used for RDs in your database. 

An example would be if you imported RDs that used Writer as a field for the author and you used Author in your RDs as the field for the author. The conversion would be Writer to Author, so you would enter Writer in this text box. 

Editable 

false 

If true (checked), the selected attribute (field) appears as Editable attribute in the Edit page for a resource description. 

Description, Keywords, Title and ReadACL are editable. 

Indexable 

true 

If true (checked), the selected attribute (field) can be used as a basis for indexing. 

Author, Title and URL appear in the menu in the Advanced Search screen 

for the end user. This allows end users to search for values in those  

particular fields. 

Author, Expires, Keywords, Last Modified, Title, URL and ReadACL  

can be used as the basis for indexing. 

Score Multiplier 

Blank 

A weighting field for scoring a particular element. Any positive value is valid. 

Data Type 

String 

Defines the data type. You need to choose the data type from the list box.