The Search object's CML-specific functionality is provided by the Search interface. This interface has the following properties and methods:
Properties and methods | Description |
---|---|
Properties | |
ConnectionString | The OLE DB connection string. |
ConnectionTimeout | The maximum time in seconds for a connection to occur. |
SearchString | Used on ASP pages to receive a text value from the library user and store it. Upon retrieval, the component parses the input search string by calling Tokenize, and reconstitutes the array of tokens into search text, which it returns. It also removes noise words and inserts AND, OR, and ~ (NEAR), as appropriate. This property contains most of the Search component's logic. |
SearchType | A constant that determines the output of the SearchString property. |
Methods | |
CreateTable | Creates a table in the SQL database. This method builds and passes a where clause (containing search parameters) to the appropriate stored procedure in the FmLib database for searching for titles, authors, or subjects. |
The Search component is called from the Search.asp page. Search.asp is itself invoked from other pages, such as Library.asp and Dfilter.asp.
For more information about the properties and methods in the preceding table, see Search Object in the CML Object Reference.