Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:CirrusSearch/Hooks/CirrusSearchBuildDocumentParse

From mediawiki.org
<Extension:CirrusSearch
CirrusSearchBuildDocumentParse
Available from version 1.23.0
Allows extensions to modify ElasticSearch document produced from a page
Define function:
publicstaticfunctiononCirrusSearchBuildDocumentParse(\Elastica\Document$doc,Title$title,Content$content,ParserOutput$parserOutput){...}
Attach hook:
$wgHooks['CirrusSearchBuildDocumentParse'][]='MyExtensionHooks::onCirrusSearchBuildDocumentParse';
Called from:
File(s):CirrusSearch / Updater.php

For more information about attaching hooks, seeManual:Hooks.
For examples of other extensions using this hook, seeCategory:CirrusSearchBuildDocumentParse extensions.

Details

[edit]
  • $doc - \Elastica\Document object representing the page. Extensions can modify it.
  • $title - Title object for the page being parsed.
  • $content - Content object for the page.
  • $parserOutput - ParserOutput for the page, if exists, or null.
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:CirrusSearch/Hooks/CirrusSearchBuildDocumentParse&oldid=4042105"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp