setDocumentPosition

suspend fun setDocumentPosition(documentInfo: DocumentInfo, position: Int)

Sets the position of a document.

Parameters

documentInfo

the DocumentInfo to set the position for.

position

the new position, zero-based.

Throws

if documentInfo doesn't exist in the model or if position exceed the number of documents in the store.