CirrusSearch
Elasticsearch-powered search for MediaWiki
|
An individual search result from Elasticsearch. More...
Public Member Functions | |
__construct ( $results, $result, ?TitleHelper $titleHelper=null) | |
Build the result. | |
getTitleSnippet () | |
getRedirectTitle () | |
getRedirectSnippet () | |
getTextSnippet ( $terms=[]) | |
getSectionSnippet () | |
getSectionTitle () | |
getCategorySnippet () | |
getWordCount () | |
getByteSize () | |
getTimestamp () | |
isFileMatch () | |
getInterwikiPrefix () | |
getInterwikiNamespaceText () | |
getDocId () | |
getScore () | |
getExplanation () | |
Public Member Functions inherited from CirrusSearch\Search\CirrusSearchResult | |
__construct (Title $title) | |
isBrokenTitle () | |
Check if this is result points to an invalid title. | |
isMissingRevision () | |
Check if target page is missing, happens when index is out of date. | |
getTitle () | |
getFile () | |
Get the file for this page, if one exists. | |
Protected Member Functions | |
clearRedirectTitle () | |
Clear any redirect match so it won't be part of the result. | |
getTitleHelper () | |
Protected Member Functions inherited from CirrusSearch\Search\CirrusSearchResult | |
initFromTitle ( $title) | |
Initialize from a Title and if possible initializes a corresponding File. | |
initText () | |
Lazy initialization of article text from DB. | |
containsHighlight (string $text) | |
An individual search result from Elasticsearch.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
CirrusSearch\Search\Result::__construct | ( | $results, | |
$result, | |||
?TitleHelper | $titleHelper = null ) |
Build the result.
mixed | $results | Unused |
\Elastica\Result | $result | containing the given search result |
TitleHelper | null | $titleHelper |
|
protected |
Clear any redirect match so it won't be part of the result.
Reimplemented from CirrusSearch\Search\CirrusSearchResult.
CirrusSearch\Search\Result::getByteSize | ( | ) |
CirrusSearch\Search\Result::getCategorySnippet | ( | ) |
CirrusSearch\Search\Result::getDocId | ( | ) |
Reimplemented from CirrusSearch\Search\CirrusSearchResult.
CirrusSearch\Search\Result::getExplanation | ( | ) |
Reimplemented from CirrusSearch\Search\CirrusSearchResult.
CirrusSearch\Search\Result::getInterwikiNamespaceText | ( | ) |
CirrusSearch\Search\Result::getInterwikiPrefix | ( | ) |
CirrusSearch\Search\Result::getRedirectSnippet | ( | ) |
CirrusSearch\Search\Result::getRedirectTitle | ( | ) |
CirrusSearch\Search\Result::getScore | ( | ) |
Reimplemented from CirrusSearch\Search\CirrusSearchResult.
CirrusSearch\Search\Result::getSectionSnippet | ( | ) |
CirrusSearch\Search\Result::getSectionTitle | ( | ) |
CirrusSearch\Search\Result::getTextSnippet | ( | $terms = [] | ) |
array | $terms |
CirrusSearch\Search\Result::getTimestamp | ( | ) |
|
protected |
CirrusSearch\Search\Result::getTitleSnippet | ( | ) |
CirrusSearch\Search\Result::getWordCount | ( | ) |
CirrusSearch\Search\Result::isFileMatch | ( | ) |