IAPI::IndexServerRunQuery

property IndexServerRunQuery.

Runs a fulltext search and fetches iteratively the result of the query.

 

HRESULT IndexServerRunQuery(
  BSTR queryFormula,
  long nMaxRows,
  BSTR *pVal
);

Parameters

queryFormula

[in] . Contains the query of search (Dialect 1 or 2) when this property executes the query or

         an empty (“ “) string when it reads iteratively the result..

nMaxRows

[in,defaultvalue(200)] . Maxi row to read for a pass

pVal

[out, retval]

The returned value is the set of piped-lines which contains ‘ Hitcount | Document path | Size | Last modif. | Rank ‘.

Each line (or row) is separated by the LineFeed character ( ‘\n’ or vbLF ). When reading the result is reached at the

end of the the recordset, the returned value is an empty string.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI