Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 1.93 KB

start-stop-indexing-and-get-indexing-status.java.markdown

File metadata and controls

60 lines (34 loc) · 1.93 KB

Commands: How to start or stop indexing and get indexing status?

Following commands have been created to enable user to toggle indexing and retrieve indexing status:

{PANEL:StartIndexing}

This methods starts indexing, if it was previously stopped.

Syntax

{CODE:java start_indexing_1@ClientApi\Commands\HowTo\StartStopIndexingAndGetIndexingStatus.java /}

Parameters
maxNumberOfParallelIndexTasks Integer if set then maximum number of parallel indexing tasks will be set to this value

Example

{CODE:java start_indexing_2@ClientApi\Commands\HowTo\StartStopIndexingAndGetIndexingStatus.java /}

{PANEL/}

{PANEL:StopIndexing}

This methods stops indexing, if it was running.

Syntax

{CODE:java stop_indexing_1@ClientApi\Commands\HowTo\StartStopIndexingAndGetIndexingStatus.java /}

Example

{CODE:java stop_indexing_2@ClientApi\Commands\HowTo\StartStopIndexingAndGetIndexingStatus.java /}

{PANEL/}

{PANEL:GetIndexingStatus}

This methods retrieves current status of the indexing.

Syntax

{CODE:java get_indexing_status_1@ClientApi\Commands\HowTo\StartStopIndexingAndGetIndexingStatus.java /}

Return Value
String "Indexing" if the indexing is running, "Paused" otherwise.

Example

{CODE:java get_indexing_status_2@ClientApi\Commands\HowTo\StartStopIndexingAndGetIndexingStatus.java /}

{PANEL/}

Related articles