|
8 | 8 | use Illuminate\Contracts\Database\Query\Expression; |
9 | 9 | use Illuminate\Contracts\Pagination\LengthAwarePaginator; |
10 | 10 | use Illuminate\Pagination\Cursor; |
11 | | -use PDPhilip\Elasticsearch\Collection\ElasticCollection; |
12 | | -use PDPhilip\Elasticsearch\Connection; |
| 11 | +use PDPhilip\Elasticsearch\Eloquent\Builder; |
| 12 | +use PDPhilip\Elasticsearch\Eloquent\ElasticCollection; |
13 | 13 | use PDPhilip\Elasticsearch\Eloquent\Model; |
14 | 14 | use PDPhilip\Elasticsearch\Pagination\SearchAfterPaginator; |
15 | | -use PDPhilip\Elasticsearch\Query\Builder; |
16 | 15 |
|
17 | 16 | /** |
18 | 17 | * Query Builder Methods --------------------------------- |
19 | 18 | * |
20 | | - * @method static $this query() |
| 19 | + * @method static Builder query() |
21 | 20 | * @method static $this where(array|Closure|Expression|string $column, $operator = null, $value = null, $boolean = 'and') |
22 | 21 | * @method static $this whereIn(string $column, array $values) |
23 | 22 | * @method static $this whereExact(string $column, string $value, $boolean = 'and') |
|
86 | 85 | * @method static ElasticCollection insert($values, $returnData = null): |
87 | 86 | * @method static ElasticCollection insertWithoutRefresh($values, $returnData = null) |
88 | 87 | * @method static array toDsl(array $columns = ['*']) |
| 88 | + * @method static array toSql(array $columns = ['*']) |
89 | 89 | * @method static mixed rawDsl(array $bodyParams) |
90 | 90 | * @method static ElasticCollection rawSearch(array $bodyParams) |
91 | 91 | * @method static array rawAggregation(array $bodyParams) |
92 | 92 | * @method static bool chunk(mixed $count, callable $callback, string $keepAlive = '5m') |
93 | 93 | * @method static bool chunkById(mixed $count, callable $callback, $column = '_id', $alias = null, $keepAlive = '5m') |
94 | 94 | * |
95 | 95 | * Index Methods --------------------------------- |
96 | | - * @method static string getQualifiedKeyName() |
97 | | - * @method static Connection getConnection() |
98 | 96 | * @method static void truncate() |
99 | 97 | * @method static bool indexExists() |
100 | 98 | * @method static bool deleteIndexIfExists() |
|
104 | 102 | * @method static array getFieldMapping(string|array $field = '*', $raw = false) |
105 | 103 | * @method static array getIndexOptions() |
106 | 104 | * |
107 | | - * Search Methods - Due for sunsetting, keep for now |
108 | | - * @method static $this term(string $term, $boostFactor = null) |
109 | | - * @method static $this andTerm(string $term, $boostFactor = null) |
110 | | - * @method static $this orTerm(string $term, $boostFactor = null) |
111 | | - * @method static $this fuzzyTerm(string $term, $boostFactor = null) |
112 | | - * @method static $this andFuzzyTerm(string $term, $boostFactor = null) |
113 | | - * @method static $this orFuzzyTerm(string $term, $boostFactor = null) |
114 | | - * @method static $this regEx(string $term, $boostFactor = null) |
115 | | - * @method static $this andRegEx(string $term, $boostFactor = null) |
116 | | - * @method static $this orRegEx(string $term, $boostFactor = null) |
117 | | - * @method static $this phrase(string $term, $boostFactor = null) |
118 | | - * @method static $this andPhrase(string $term, $boostFactor = null) |
119 | | - * @method static $this orPhrase(string $term, $boostFactor = null) |
120 | | - * @method static $this minShouldMatch(int $value) |
121 | | - * @method static $this highlight(array $fields = [], string|array $preTag = '<em>', string|array $postTag = '</em>', $globalOptions = []) |
122 | | - * @method static $this minScore(float $value) |
123 | | - * @method static $this field(string $field, int $boostFactor = null) |
124 | | - * @method static $this fields(array $fields) |
125 | | - * @method static array searchModels(array $columns = ['*']) |
126 | | - * @method static ElasticCollection search(array $columns = ['*']) |
127 | | - * |
128 | 105 | * @property object $search_highlights |
129 | 106 | * @property object $with_highlights |
130 | 107 | * @property array $search_highlights_as_array |
|
0 commit comments