Свойство | Type | Description | |
---|---|---|---|
$_autoPopulate | boolean | ||
$_data | Document data. | ||
$_docAsUpsert | boolean | Whether to use this document to upsert if the document does not exist. |
Méthode | Description | |
---|---|---|
__construct ( integer | string $id = '', array | string $data = [], |
Creates a new document. | |
__get ( string $key ) : mixed | ||
__isset ( string $key ) : boolean | ||
__set ( string $key, mixed $value ) | ||
__unset ( string $key ) | ||
addFile ( string $key, string $filepath, string $mimeType = '' ) | Adds a file to the index. | |
addFileContent ( string $key, string $content ) | Add file content. | |
addGeoPoint ( string $key, float $latitude, float $longitude ) | Adds a geopoint to the document. | |
create ( array | |
||
get ( string $key ) : mixed | ||
getData ( ) : array | string | Returns the document data. | |
getDocAsUpsert ( ) : boolean | ||
has ( string $key ) : boolean | ||
isAutoPopulate ( ) : boolean | ||
remove ( string $key ) | ||
set ( string $key, mixed $value ) | ||
setAutoPopulate ( boolean $autoPopulate = true ) | ||
setData ( array | string $data ) | Overwrites the current document data with the given data. | |
setDocAsUpsert ( boolean $value ) | ||
toArray ( ) : array | Returns the document as an array. |
public __construct ( integer | string $id = '', array | string $data = [], |
||
$id | integer | string | OPTIONAL $id Id is create if empty |
$data | array | string | OPTIONAL Data array |
$type | OPTIONAL Type name | |
$index | OPTIONAL Index name |
./bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.6.0
This installs the tika file analysis plugin. More infos about supported formats
can be found here: {@link http://tika.apache.org/0.7/formats.html} public addFileContent ( string $key, string $content ) | ||
$key | string | Document key |
$content | string | Raw file content |
public setAutoPopulate ( boolean $autoPopulate = true ) | ||
$autoPopulate | boolean |
protected bool $_docAsUpsert | ||
Résultat | boolean |