Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.Search (Deprecated)
Deprecated as of Content Server version 7.6
Syntax
public IList Search(String sIndex, String sWhat, String sRelevance, String sQueryParser, int nMaxResults, FTValList vlAdditionalIndexes, String sList, String sEngine, String sCharset, StringBuffer sbError)Parameters
sIndex- The name of the search index. If
null, the default index is specified in the Sites propertiesav.defaultindexorverity.defaultindexas appropriate.
sWhat- Query to submit. This should be in the format the given search engine understands.
sRelevance- The relevance string. May be
null.
sQueryParser- The AltaVista search engine supports three search types--
Simple,Advanced, andCombined.Advancedis the default.
- The Verity search engine supports three query parsers-
Simple,FreeText, andBoolPlus. The optionalQueryParserparameter tells the Verity search engine the syntax of theWHATclause. If this argument is omitted, then theSimpleparser is used by default. The parser may be specified by theverity.parserproperty in thefuturetense.inifile.
nMaxResults- The maximum number of results to return. Set this to 0 for unlimited results.
vlAdditionalIndexes- The name/value pairs of additional indexes to search. May be
null.
sList- Name of the output list. Columns returned are:
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.sEngine- Search engine name. If
null, the value of the Sites property,cs.searchengine, is used.
sCharset- Constant value representing the character set the index uses.
- For the AltaVista search engine, this value can be 0, 1, or 2 (ISO_LATIN1, ASCII8, or UTF8). If
sCharSetisnull, Sites uses the value ofav.charsetin the properties file.- For the Verity search engine, this value specifies the name of the subdirectory of the common directory where the locale is defined. If
sCharSetisnull, Sites uses the value ofverity.charsetin the properties file.sbError- For return values; may contain error information.
Description
The
Searchmethod searches an index. The resultset of the query is stored in a list.Returns
Returns the name/value pairs of the result set. If an error occurs, or if there are no results satisfying the query, then a
nullis returned.Error Numbers
Use
, and see Appendix A, "Error Conditions," for the possibleGetErrno()errnovalues.
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.