Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.IndexExists (Deprecated)
Deprecated as of Content Server version 7.6
Syntax
public boolean IndexExists(String sIndex, String sEngine, String sCharset, StringBuffer sbError)Parameters
sIndex- Full pathname of search index to find.
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 (ASCII7, ASCII8 (Not supported), or UTF8). If
sCharSetisnull, Sites uses the value ofav.charsetin the properties file.
sbError- For return values; may contain error information.
Returns
Returns
trueif the index exists,falseotherwise.Error Numbers
Use
GetErrno(), and see Appendix A, "Error Conditions," for the possibleerrnovalues.Example
The following example checks for the existence of an index:
ics.ClearErrno(); StringBuffer errs = new StringBuffer(); ics.IndexExists("D:/myIndex", null, null, errs); int existsErrno = ics.GetErrno();
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.