Represents a context hit for a search result.

interface ISearchContextHit {
    annotationId?: number;
    context?: string;
    edocHitCount?: number;
    fieldHitCount?: number;
    fieldName?: string;
    highlight1Length?: number;
    highlight1Offset?: number;
    highlight2Length?: number;
    highlight2Offset?: number;
    hitNumber?: number;
    hitType?: HitType;
    hitWidth?: number;
    isAnnotationHit?: boolean;
    pageNumber?: number;
    pageOffset?: number;
}

Implemented by

Properties

annotationId?: number

The ID of the annotation that the context hit is in.

context?: string

The line of context for the search hit.

edocHitCount?: number

The number of hits in the electronic document.

fieldHitCount?: number

The number of hits in the template.

fieldName?: string

The name of a template field containing the hit.

highlight1Length?: number

The length of the first highlight in characters.

highlight1Offset?: number

The character offset from the beginning of the context line of the start of the first highlight.

highlight2Length?: number

The length of the second highlight in characters.

highlight2Offset?: number

The character offset from the beginning of the context line of the start of the second highlight.

hitNumber?: number

The hit number.

hitType?: HitType

The type of context hit this instance represents.

hitWidth?: number

The number of words in the context hit.

isAnnotationHit?: boolean

A boolean indicating if this context hit occurs on an annotation.

pageNumber?: number

The page number in the document of the search hit's context.

pageOffset?: number

The offset from the beginning of the page of the starting character of the search hit's context line.