Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

meta=WikiSearchHighlight

(main | query | WikiSearchHighlight)

Create highlight snippets from an ElasticSearch search query

Parametry:
Other general parameters are available.
query

The query to generate highlights from

Ten parametr jest wymagany.
properties

The properties to generate highlights from

Ten parametr jest wymagany.
page_id

The page for which you want to generate highlights

Ten parametr jest wymagany.
Typ: liczba całkowita
limit

The maximum number of highlights to return

Ten parametr jest wymagany.
Typ: liczba całkowita
size

The size of the snippets to return (leave blank to highlight individual words)

Typ: liczba całkowita
Wartość musi znajdować się pomiędzy 1 a 250.
highlighter_type
⧼apihelp-query+WikiSearchHighlight-param-highlighter_type⧽