SearchResultItem

data class SearchResultItem(val locator: SimpleLocatorData, val matchingText: String, val readerDocumentIndexInSpine: Int, val textAfter: String, val textBefore: String)

Represents a search result item containing a search match.

Constructors

Link copied to clipboard
fun SearchResultItem(locator: SimpleLocatorData, matchingText: String, readerDocumentIndexInSpine: Int, textAfter: String, textBefore: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

The locator pointing to the matching text in the publication.

Link copied to clipboard

The matching text as found in the ReaderDocument.

Link copied to clipboard

The index of the ReaderDocument in the ReaderPublication spine where the match was found.

Link copied to clipboard

The text in the ReaderDocument just after the matching text. To configure this field, see TextSearchResultOptions.numberOfCharactersAfter.

Link copied to clipboard

The text in the ReaderDocument just before the matching text. To configure this field, see TextSearchResultOptions.numberOfCharactersBefore.