CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Search\ArrayCirrusSearchResult Class Reference
+ Inheritance diagram for CirrusSearch\Search\ArrayCirrusSearchResult:
+ Collaboration diagram for CirrusSearch\Search\ArrayCirrusSearchResult:

Public Member Functions

 __construct (Title $title, array $data)
 
 getDocId ()
 
 getScore ()
 
 getExplanation ()
 
 getTextSnippet ( $terms=[])
 @inheritDoc
 
 getTitleSnippet ()
 @inheritDoc
 
 getRedirectSnippet ()
 @inheritDoc
 
 getRedirectTitle ()
 @inheritDoc
 
 getSectionSnippet ()
 @inheritDoc
 
 getSectionTitle ()
 @inheritDoc
 
 getCategorySnippet ()
 @inheritDoc
 
 getTimestamp ()
 @inheritDoc
 
 getWordCount ()
 @inheritDoc
 
 getByteSize ()
 @inheritDoc
 
 getInterwikiPrefix ()
 @inheritDoc
 
 getInterwikiNamespaceText ()
 @inheritDoc
 
 isFileMatch ()
 @inheritDoc
 
 getExtensionData ()
 
- 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.
 

Public Attributes

const DOC_ID = 'doc_id'
 
const SCORE = 'score'
 
const EXPLANATION = 'explanation'
 
const TEXT_SNIPPET = 'text_snippet'
 
const TITLE_SNIPPET = 'title_snippet'
 
const REDIRECT_SNIPPET = 'redirect_snippet'
 
const REDIRECT_TITLE = 'redirect_title'
 
const SECTION_SNIPPET = 'section_snippet'
 
const SECTION_TITLE = 'section_title'
 
const CATEGORY_SNIPPET = 'category_snippet'
 
const TIMESTAMP = 'timestamp'
 
const WORD_COUNT = 'word_count'
 
const BYTE_SIZE = 'byte_size'
 
const INTERWIKI_NAMESPACE_TEXT = 'interwiki_namespace_text'
 
const IS_FILE_MATCH = 'is_file_match'
 
const EXTRA_FIELDS = 'extra_fields'
 

Additional Inherited Members

- 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.
 

Member Function Documentation

◆ getDocId()

CirrusSearch\Search\ArrayCirrusSearchResult::getDocId ( )
Returns
string

Reimplemented from CirrusSearch\Search\CirrusSearchResult.

◆ getExplanation()

CirrusSearch\Search\ArrayCirrusSearchResult::getExplanation ( )
Returns
array|null

Reimplemented from CirrusSearch\Search\CirrusSearchResult.

◆ getExtensionData()

CirrusSearch\Search\ArrayCirrusSearchResult::getExtensionData ( )
Returns
array[]

◆ getScore()

CirrusSearch\Search\ArrayCirrusSearchResult::getScore ( )
Returns
float

Reimplemented from CirrusSearch\Search\CirrusSearchResult.


The documentation for this class was generated from the following file: