Corpus Search

Returns extended context the KWIC in a concrete concordance line.

This is the equivalent of clicking KWIC in one concordance line which displays a popup with an extended context.

get/search/widectx

Request

  • The document declares no server URL.
  • Auth: HTTP basic

Query parameters

corpnamestring required

Corpus name. To query your own corpus (e.g. username john, corpus mycorpus), use value user/john/mycorpus.

posinteger
Example:10336

The position of the first token of KWIC in the corpus.

hitleninteger
Example:1

Only used by the web interface. Indicates the number of tokens that should be highlighted in red.

structsstring
Example:s,g

A list of comma-delimited structures (=structure tags) that should be included in the result.

detail_left_ctxinteger
Example:50

Size of the left context in tokens.

detail_right_ctxinteger
Example:50

Size of the right context in tokens.

Response

OK

wrapdetailstring
deletewrapboolean
leftlinkstring
rightlinkstring
posinteger
maxcontentinteger
api_versionstring
manatee_versionstring

Example response

{
  "wrapdetail": "<p>",
  "deletewrap": true,
  "content": [
    {
      "str": ", in Hungarian also means \"majority of\", \"its belongings\", \"its goods\", \"its best portion\", a type of pork, and may also be incorrectly identified as an agglutination of a frequent abbreviation in mailing lists."
    }
  ],
  "leftlink": "pos=831745;detail_left_ctx=110;detail_right_ctx=50",
  "rightlink": "pos=831745;detail_left_ctx=50;detail_right_ctx=110",
  "pos": 831745,
  "maxcontent": 200,
  "api_version": "5.63.12",
  "manatee_version": "2.36.7-SkE-2.223.6",
  "request": {
    "detail_left_ctx": "50",
    "corpname": "preloaded/ententen21_tt31",
    "hitlen": "1",
    "pos": "831745",
    "detail_right_ctx": "50",
    "structs": "s,g"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.