MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=granthasearch
(main | granthasearch)
- This module requires read rights.
- Source: GranthaSearch
- License: MIT
Substring search over indexed document blocks.
Specific parameters:
Other general parameters are available.
- q
The search string (Devanagari or IAST). Matched as a literal substring.
- This parameter is required.
- scope
Restrict to these document ids (pipe-separated).
- type
Restrict to these block types (pipe-separated), e.g. bhashya|verse.
- limit
Number of results per page.
- Type: integer
- Default: 10
- offset
Result offset for pagination.
- Type: integer
- Default: 0
Examples:
- Search for a term across all documents.
- api.php?action=granthasearch&q=ब्रह्मजिज्ञासा [open in sandbox]
- Search within one document.
- api.php?action=granthasearch&q=सूत्र&scope=Brahmasutra&limit=10 [open in sandbox]