Skip to main content

Interface IFreeTextAgent

Namespace: SuperOffice.WebApi.Agents
Assembly: SuperOffice.WebApi.dll
This agent can be used to manage the free text system

Implements

IAgentBase, IDisposable

Methods

FreetextIndexRowsAsync(string, int[], RequestOptions)

Update the freetext index for one or more rows from the same table

Parameters

tableName string The name of the table the rows come from; this table should have at least one freetext-indexable field iDs int[] One or more primary keys, identifying records to be (re)indexed. It doesn’t matter if they have been indexed before or not requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task This method has no return value

GetStatusAsync(RequestOptions)

Returns status for the freetext search words

Parameters

requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<FreeText&gt; The freetext status

RegenerateIndexAsync(bool, RequestOptions)

Wipe and regenerate the freetext index by scanning the database (freetext search will be unavailable while this operation runs

Parameters

runAsBatch bool If true, then execute the regeneration as a Batch Task; the service call will return immediately. Otherwise wait until the task completes, may cause a timeout if called as a Web Service requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<BatchTaskInfo&gt; Information about the batch task, if batch execution was requested. Otherwise null

SetEnabledAsync(bool, RequestOptions)

Sets freetext search to enabled (true) or disabled (false)

Parameters

enabled bool If enabled true, else false requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task This method has no return value

SetMultiWordOperatorAsync(FreeTextOperator, RequestOptions)

Sets the operator used when matching multiple words

Parameters

freeTextOperator FreeTextOperator The operator requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task No return value

SetSingleWordOperatorAsync(FreeTextOperator, RequestOptions)

Sets the operator used when matching single words

Parameters

freeTextOperator FreeTextOperator The operator requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task This method has no return value