Skip to content

Commit c5c7633

Browse files
committed
Replace greensight with Ensi
1 parent 055f5b9 commit c5c7633

File tree

67 files changed

+450
-391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+450
-391
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The MIT License (MIT)
2-
Copyright (C) 2021 Greensight mail@greensight.ru
2+
Copyright (C) 2021 Ensi mail@greensight.ru
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
55

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Laravel Elastic Query Specification
22

3-
Extension for [greensight/laravel-elastic-query](https://github.com/greensight/laravel-elastic-query/) to describe queries in a declarative way.
3+
Extension for [ensi/laravel-elastic-query](https://github.com/ensi-platform/laravel-elastic-query/) to describe queries in a declarative way.
44

55
## Installation
66

7-
1. Install [greensight/laravel-elastic-query](https://github.com/greensight/laravel-elastic-query/) https://github.com/greensight/laravel-elastic-query#installation
8-
2. `composer require greensight/laravel-elastic-query-specification`
7+
1. Install [ensi/laravel-elastic-query](https://github.com/ensi-platform/laravel-elastic-query/) https://github.com/ensi-platform/laravel-elastic-query#installation
8+
2. `composer require ensi/laravel-elastic-query-specification`
99

1010
## Usage // TODO translate to english
1111

1212
Все виды декларативных запросов строятся на основе спецификации. В ней содержатся определения доступных фильтров, сортировок и
1313
агрегатов.
1414

1515
```php
16-
use Greensight\LaravelElasticQuery\Declarative\Agregating\AllowedAggregate;
17-
use Greensight\LaravelElasticQuery\Declarative\Filtering\AllowedFilter;
18-
use Greensight\LaravelElasticQuery\Declarative\Sorting\AllowedSort;
19-
use Greensight\LaravelElasticQuery\Declarative\Specification\CompositeSpecification;
20-
use Greensight\LaravelElasticQuery\Declarative\Specification\Specification;
16+
use Ensi\LaravelElasticQuery\Declarative\Agregating\AllowedAggregate;
17+
use Ensi\LaravelElasticQuery\Declarative\Filtering\AllowedFilter;
18+
use Ensi\LaravelElasticQuery\Declarative\Sorting\AllowedSort;
19+
use Ensi\LaravelElasticQuery\Declarative\Specification\CompositeSpecification;
20+
use Ensi\LaravelElasticQuery\Declarative\Specification\Specification;
2121

2222
class ProductSpecification extends CompositeSpecification
2323
{
@@ -160,8 +160,8 @@ AllowedAggregate::minmax('name', 'field'); // Get min and max attribute values
160160
## Поиск документов
161161

162162
```php
163-
use Greensight\LaravelElasticQuery\Declarative\SearchQueryBuilder;
164-
use Greensight\LaravelElasticQuery\Declarative\QueryBuilderRequest;
163+
use Ensi\LaravelElasticQuery\Declarative\SearchQueryBuilder;
164+
use Ensi\LaravelElasticQuery\Declarative\QueryBuilderRequest;
165165

166166
class ProductsSearchQuery extends SearchQueryBuilder
167167
{
@@ -186,8 +186,8 @@ class ProductsController
186186
## Расчет сводных показателей
187187

188188
```php
189-
use Greensight\LaravelElasticQuery\Declarative\AggregateQueryBuilder;
190-
use Greensight\LaravelElasticQuery\Declarative\QueryBuilderRequest;
189+
use Ensi\LaravelElasticQuery\Declarative\AggregateQueryBuilder;
190+
use Ensi\LaravelElasticQuery\Declarative\QueryBuilderRequest;
191191

192192
class ProductsAggregateQuery extends AggregateQueryBuilder
193193
{

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "greensight/laravel-elastic-query-specification",
2+
"name": "ensi/laravel-elastic-query-specification",
33
"description": "",
44
"keywords": [
55
"Greensight",
@@ -17,7 +17,7 @@
1717
"require": {
1818
"php": "^8.0",
1919
"elasticsearch/elasticsearch": "^7.13",
20-
"greensight/laravel-elastic-query": "^0.2.0",
20+
"ensi/laravel-elastic-query": "^0.3.0",
2121
"illuminate/contracts": "^8.37",
2222
"illuminate/support": "^8.0",
2323
"spatie/laravel-package-tools": "^1.4.3"

0 commit comments

Comments
 (0)