Sun Java System Portal Server 7.2 Command-Line Reference

Chapter 12 Search psadmin Subcommands - Resource Description

This chapter describes the following subcommands:

psadmin list-search-resourcedescriptions

Description

Lists the resource descriptions from a search server.

Syntax

Long Format

psadmin list-search-resourcedescriptions --searchserver search-server-ID --searchtype search-type --adminuser admin-user [--passwordfile password-filename] --database database-name [--query query] [--viewattributes '"view1" "view2" "..." "viewN"'] [--startpage start-page] [--hitsperpage hits-per-page]

Short Format

psadmin list-search-rds -s search-server-ID -t search-type -u uid [-f password-filename] -d database-name [-q query] [-A '"view1" "view2" "..." "viewN"'] [-P start-page] [-H hits-per-page]

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--searchtype | -t] search-type

Specifies the type of search. The values are all, uncategorized, categorized, by_category, by_url, by_query.

[--database | -d] database-name

Specifies the name of the database.

The following options are optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

[--query | -q] query

Specifies the query for by_category, by_url andby_query search types.

[--veiwattributes | -A] '"view1" "view2" "..." "viewN"'

Displays the list of view attributes. To pass a list of strings, use the format '” string1” “string2” “...” “stringN”'.

[--startpage | -P] start-page

Specifies pagination. The startpage option is used with hitsperpage to manage how the results are displayed. The startpage option determines the page for a grouping of results, and hitsperpage determines how many results are in one group. The startpage value can be 1...n.

[--hitsperpage | -H] hits-per-page

Specifies the number of hits per page that are displayed. It can be 1...n. For example, to display the hits in groups of 5 on the page, specify the value for hitsperpage as 5.

psadmin create-search-resourcedescription

Description

Creates a resource description in a search server.

Syntax

Long Format

psadmin create-search-resourcedescription --searchserver search-server-ID --file SOIF-filename --adminuser admin-user [--passwordfile password-filename] --database database-name

Short Format

psadmin create-search-rd -s search-server-ID -F SOIF-filename -u uid [-f password-filename] -d database-name

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--file | -F] SOIF-filename

Specifies the path and name of the SOIF file.

[--database | -d] database-name

Specifies the database.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

psadmin delete-search-resourcedescriptions

Description

Deletes resource descriptions from a search server.

Syntax

Long Format

psadmin delete-search-resourcedescriptions --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename] --urls '"URL1" "URL2" "..." "URLN"' --database database-name

Short Format

psadmin delete-search-rds -s search-server-ID -u uid [-f password-filename] -R '"URL1" "URL2" "..." "URLN"' -d database-name

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--urls | -R] '"URL1" "URL2" "..." "URLN"'

Specifies a list of URLs. To pass a list of strings, use the format '” string1” “string2” “...” “stringN”'.

[--database | -d] database-name

Specifies the database.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

psadmin modify-search-resourcedescription

Description

Modifies a resource description in a search server.

Syntax

Long Format

psadmin modify-search-resourcedescription --searchserver search-server-ID --file SOIF-filename --adminuser admin-user [--passwordfile password-filename] --database database-name

Short Format

psadmin modify-search-rd -s search-server-ID -F SOIF-filename -u uid [-f password-filename] -d database-name

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--file | -F] SOIF-filename

Specifies the path and name of the SOIF file.

[--database | -d] database-name

Specifies the database.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.