Property | Type | Description | |
---|---|---|---|
$_result | Holds an instance of a Result object that's passed into the constructor from a search query. It can contain extra information about this document concerning the search operation, such as highlights, score and version. |
Method | Description | |
---|---|---|
__construct ( array | |
Takes either an array or a Result object form a search and constructs a document representing an entity in a elastic search type, | |
explanation ( ) : array | Returns the explanation array for this document as returned from ElasticSearch. | |
highlights ( ) : array | Returns the highlights array for document as returned by ElasticSearch for the executed query. | |
type ( ) : string | null | Returns the ElasticSearch type name from which this document came from. | |
version ( ) : integer | Returns the version number of this document as returned by ElasticSearch |
public __construct ( array | |
||
$data | array | |
An array or Result object that represents an Elasticsearch document |
$options | array | An array of options to set the state of the document |
public explanation ( ) : array | ||
return | array |
public highlights ( ) : array | ||
return | array |
protected Result,Elastica $_result | ||
return |