Home > Contents > Index >
Expanded TOC | Purpose TOC | Annotated TOC | Index
MiscSearch (Deprecated)
Syntax
miscSearch(java.lang.String authusername, java.lang.String authpassword, java.lang.String INDEX, java.lang.String WHAT, java.lang.String QUERYPARSER, java.lang.String RELEVANCE, java.lang.String LIMIT, java.lang.String CHARACTERSET, java.lang.String SEARCHENGINE)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
orverity.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
, andCombined
.Advanced
is the default option if noQueryParser
parameter is specified.
- The Verity search engine supports three query parsers:
Simple
,FreeText
, andBoolPlus
. TheQueryParser
parameter tells the Verity search engine the syntax of theWhat
clause. If theQueryParser
argument is omitted in the call, then theSimple
parser is used by default.The parser may be specified by theverity.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:MiscService service = (MiscService)new MiscService_Impl(); MiscPortType port = service.getMiscPort(); IList myList = port.miscSearch("user_author", "demo", "c:\JumpStart\futuretense\Storage\sedb\Article.avx", "description:Burlington", "Simple", null, null, null, null);
Home > Contents > Index > ![]()
Oracle Web Services Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.