예제 #1
0
 /**
  * ElasticSearch constructor.
  *
  * @param Model    $model
  * @param array    $mappingProperties
  * @param int|null $numberOfShards
  * @param int|null $numberOfReplicas
  */
 public function __construct(Model $model, array $mappingProperties, $numberOfShards = null, $numberOfReplicas = null)
 {
     parent::__construct($model);
     $this->mappingProperties = $mappingProperties;
     $this->numberOfShards = $numberOfShards;
     $this->numberOfReplicas = $numberOfReplicas;
 }
예제 #2
0
 /**
  * MysqlLike constructor.
  *
  * @param Model $model
  * @param array $searchFields
  */
 public function __construct(Model $model, array $searchFields)
 {
     parent::__construct($model);
     $this->searchFields = $searchFields;
 }