execute
Executes the query on the specified list of ReaderDocuments and returns an iterator that can be used to fetch SearchResultItems.
This method is lazy and will only search as needed when fetching more items from the iterator.
Example:
val searchResultIterator = query.execute(readerView.readerDocuments)
// get up to 10 search result items
val firstTenResultItems = searchResultIterator.take(10)
// get all remaining items
val remainingResultItems = searchResultIterator.takeRemaining()
Content copied to clipboard