Свойство | Type | Description | |
---|---|---|---|
$documentScore | null | integer | Hit score when using data from Elasticsearch results. | |
$documentVersion | null | integer | Elasticsearch document version. | |
$isDocument | boolean | Set to true when our model is populated by a | |
$usesTimestampsInIndex | boolean | Uses Timestamps In Index |
Méthode | Description | |
---|---|---|
addAllToIndex ( ) : array | Index Documents | |
addToIndex ( ) : array | Add to Search Index | |
complexSearch ( $params ) : elasticquent\ElasticquentResultCollection | Perform a "complex" or custom search. | |
createIndex ( integer $shards = null, integer $replicas = null ) : array | Create Index | |
deleteIndex ( ) : array | Delete Index | |
deleteMapping ( ) : array | Delete Mapping | |
documentScore ( ) : null | float | Get Document Score | |
documentVersion ( ) : null | integer | Document Version | |
dontUseTimestampsInIndex ( ) | Don't Use Timestamps In Index. | |
getBasicEsParams ( boolean $getIdIfPossible = true, boolean $getSourceIfPossible = false, boolean $getTimestampIfPossible = false, integer $limit = null, integer $offset = null ) : array | Get Basic Elasticsearch Params | |
getIndexDocumentData ( ) : array | Get Index Document Data | |
getIndexSettings ( ) : array | Get Index Settings | |
getIndexedDocument ( ) : array | Get Search Document | |
getMapping ( ) : void | Get Mapping | |
getMappingProperties ( ) : array | Get Mapping Properties | |
getTypeName ( ) : string | Get Type Name | |
hydrateElasticquentResult ( array $items, array $meta = null ) : Elasticquent\ElasticquentResultCollection | Create a elacticquent result collection of models from plain arrays. | |
hydrateElasticsearchResult ( array $result ) : Elasticquent\ElasticquentResultCollection | Create a elacticquent result collection of models from plain elasticsearch result. | |
hydrateRecursive ( |
Create a collection of models from plain arrays recursive. | |
isDocument ( ) : boolean | Is Elasticsearch Document | |
loadPivotAttribute ( |
Get the pivot attribute from a model. | |
loadRelationsAttributesRecursive ( |
Get the relations attributes from a model. | |
mappingExists ( ) : boolean | Mapping Exists | |
newCollection ( array $models = [] ) : ElasticquentCollection | New Collection | |
newElasticquentResultCollection ( array $models = [], array $meta = null ) : Elasticquent\ElasticquentResultCollection | Create a new Elasticquent Result Collection instance. | |
newFromBuilderRecursive ( |
Create a new model instance that is existing recursive. | |
newFromHitBuilder ( array $hit = [] ) : static | New From Hit Builder | |
putMapping ( boolean $ignoreConflicts = false ) : array | Put Mapping. | |
rebuildMapping ( ) : array | Rebuild Mapping | |
reindex ( ) : array | Re-Index All Content | |
removeFromIndex ( ) : array | Remove From Search Index | |
search ( string $term = '' ) : elasticquent\ElasticquentResultCollection | Search | |
searchByQuery ( array $query = null, array $aggregations = null, array $sourceFields = null, integer $limit = null, integer $offset = null, array $sort = null ) : elasticquent\ElasticquentResultCollection | Search By Query | |
setMappingProperties ( array $mapping = null ) | Set Mapping Properties | |
typeExists ( ) : boolean | Type Exists. | |
updateIndex ( ) : array | Partial Update to Indexed Document | |
useTimestampsInIndex ( $shouldUse = true ) | Use Timestamps In Index. | |
usesTimestampsInIndex ( ) | Uses Timestamps In Index. |
Méthode | Description | |
---|---|---|
buildFieldsParameter ( boolean $getSourceIfPossible, boolean $getTimestampIfPossible ) : array | Build the 'fields' parameter depending on given options. | |
isMultiLevelArray ( array $array ) : boolean | Check if an array is multi-level array like [[id], [id], [id]]. |
public static addAllToIndex ( ) : array | ||
Résultat | array |
public static complexSearch ( $params ) : elasticquent\ElasticquentResultCollection | ||
$params | parameters to be passed directly to Elasticsearch | |
Résultat | elasticquent\ElasticquentResultCollection |
public static deleteIndex ( ) : array | ||
Résultat | array |
public static deleteMapping ( ) : array | ||
Résultat | array |
public documentScore ( ) : null | float | ||
Résultat | null | float |
public documentVersion ( ) : null | integer | ||
Résultat | null | integer |
public dontUseTimestampsInIndex ( ) |
public getBasicEsParams ( boolean $getIdIfPossible = true, boolean $getSourceIfPossible = false, boolean $getTimestampIfPossible = false, integer $limit = null, integer $offset = null ) : array | ||
$getIdIfPossible | boolean | |
$getSourceIfPossible | boolean | |
$getTimestampIfPossible | boolean | |
$limit | integer | |
$offset | integer | |
Résultat | array |
public getIndexDocumentData ( ) : array | ||
Résultat | array |
public getIndexSettings ( ) : array | ||
Résultat | array |
public getIndexedDocument ( ) : array | ||
Résultat | array |
public getMappingProperties ( ) : array | ||
Résultat | array |
public static hydrateElasticquentResult ( array $items, array $meta = null ) : Elasticquent\ElasticquentResultCollection | ||
$items | array | |
$meta | array | |
Résultat | Elasticquent\ElasticquentResultCollection |
public static hydrateElasticsearchResult ( array $result ) : Elasticquent\ElasticquentResultCollection | ||
$result | array | |
Résultat | Elasticquent\ElasticquentResultCollection |
public static hydrateRecursive ( |
||
$model | ||
$items | array | |
$parentRelation | Illuminate\Database\Eloquent\Relations\Relation | |
Résultat | Illuminate\Database\Eloquent\Collection |
public isDocument ( ) : boolean | ||
Résultat | boolean |
public static loadPivotAttribute ( |
||
$model | ||
$parentRelation | Illuminate\Database\Eloquent\Relations\Relation |
public static loadRelationsAttributesRecursive ( |
||
$model |
public static mappingExists ( ) : boolean | ||
Résultat | boolean |
public newCollection ( array $models = [] ) : ElasticquentCollection | ||
$models | array | |
Résultat | ElasticquentCollection |
public newElasticquentResultCollection ( array $models = [], array $meta = null ) : Elasticquent\ElasticquentResultCollection | ||
$models | array | |
$meta | array | |
Résultat | Elasticquent\ElasticquentResultCollection |
public static newFromBuilderRecursive ( |
||
$model | ||
$attributes | array | |
$parentRelation | Illuminate\Database\Eloquent\Relations\Relation | |
Résultat | static |
public newFromHitBuilder ( array $hit = [] ) : static | ||
$hit | array | |
Résultat | static |
public static putMapping ( boolean $ignoreConflicts = false ) : array | ||
$ignoreConflicts | boolean | |
Résultat | array |
public static rebuildMapping ( ) : array | ||
Résultat | array |
public removeFromIndex ( ) : array | ||
Résultat | array |
public static searchByQuery ( array $query = null, array $aggregations = null, array $sourceFields = null, integer $limit = null, integer $offset = null, array $sort = null ) : elasticquent\ElasticquentResultCollection | ||
$query | array | |
$aggregations | array | |
$sourceFields | array | |
$limit | integer | |
$offset | integer | |
$sort | array | |
Résultat | elasticquent\ElasticquentResultCollection |
public setMappingProperties ( array $mapping = null ) | ||
$mapping | array |
public static typeExists ( ) : boolean | ||
Résultat | boolean |
public updateIndex ( ) : array | ||
Résultat | array |
public useTimestampsInIndex ( $shouldUse = true ) |
protected bool $isDocument | ||
Résultat | boolean |
protected bool $usesTimestampsInIndex | ||
Résultat | boolean |