Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Represents a search result item containing a search match.

    interface ISearchResultItemData {
        contentBlocks?: IContentBlockData[];
        locator: ISimpleLocatorData;
        matchingText: string;
        readerDocumentIndexInSpine: number;
        textAfter: string;
        textBefore: string;
    }

    Properties

    contentBlocks?: IContentBlockData[]

    The content blocks related to the matchingText.

    The locator pointing to the matching text in the publication.

    matchingText: string

    The matching text as found in the ReaderDocument.

    readerDocumentIndexInSpine: number

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

    textAfter: string

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

    textBefore: string

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