Skip to main content
Version: Beta

Statement

description

Statement represents context of every keyword hit in a document

type Statement {
page: Int!
text: String!
htmlText: String!
hitOffsets: [HitOffset!]!
context: [String!]!
}

Fields

Statement.page ● Int! non-null scalar

Page on which keyword and therefore statement occurs @exposed

Statement.text ● String! non-null scalar

Context of a keyword - limited amount of text (paragraph) that gives context to a single keyword result @exposed

Statement.htmlText ● String! non-null scalar

The same as text but the hit(s) are wrapped inside a span element with a class @exposed

Statement.hitOffsets ● [HitOffset!]! non-null object

The indexes where the hit(s) are occurred @exposed

Statement.context ● [String!]! non-null scalar

The context where the hit is occurred (title or context) @exposed

Member of

KeywordResult object