Home > Contents > Index >
Expanded TOC   |    Purpose TOC   |    Annotated TOC   |    Index

 

MiscSearch (Deprecated)

Syntax

Parameters

INDEX (optional)
(String) The name of the search index to search. If null, the default index is specified in the Sites properties av.defaultindex or verity.defaultindex, as appropriate.

WHAT (Required)
(String) Query to submit. The query is a What clause that contains search criteria in the language of the search-engine parser.

QUERYPARSER (optional)
(String) Name of the search engine query parser to use.

The AltaVista search engine supports three search types: Simple, Advanced, and Combined. Advanced is the default option if no QueryParser parameter is specified.

The Verity search engine supports three query parsers: Simple, FreeText, and BoolPlus. The QueryParser parameter tells the Verity search engine the syntax of the What clause. If the QueryParser argument is omitted in the call, then the Simple parser is used by default.The parser may be specified by the verity.parser property in the futuretense.ini file.

RELEVANCE (optional)
(String) Search engine relevance term in string format. Can be null.

LIMIT (optional)
Maximum number of assets to return.

CHARACTERSET (optional)
(String) Name of the character set to use for the search.

SEARCHENGINE
(String) Name of the search engine to use.

Description

The Search operation searches an index via the Sites ICS Search utility. The result set of the query is stored in a list.

Returns

Returns a list with the following columns:

ENTRY
Name of the index entry that matches the search criteria.

DETAIL
Details of the index entry that matches the search criteria.

DATE
Date the entry was added or the date specified when the index was added. Format is in Java SQL.

RELEVANCE
Relevance value associated with the search result. The closer the value is to 1, the more useful and relevant the search result is likely to be.

Error Numbers

The possible values of errno include:

Value Description
-101 No search results.
-800 Bad search type.
-801 Cannot load search engine.
-802 Unsupported search function.
-805 No default index specified.
-806 Unknown search engine.
-809 Search failed.
-810 Bad character set.
-811 Could not call native method.
-812 Index does not exist.

 

Example

The following code searches for an AltaVista index given a query specified by the What parameter and an index. The example assumes that the AltaVista search is configured for article assets:


  Home > Contents > Index >

Oracle Web Services Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.