Completed
Push — develop ( 5325d9...9f3a91 )
by Sam
11s
created

AbstractQuery::assertScoreMode()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 6
nc 1
nop 1
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
<?php namespace Nord\Lumen\Elasticsearch\Search\Query\Joining;
2
3
use Nord\Lumen\Elasticsearch\Search\Query\QueryDSL;
4
use Nord\Lumen\Elasticsearch\Search\Query\Traits\HasQuery;
5
use Nord\Lumen\Elasticsearch\Search\Query\Traits\HasScoreMode;
6
7
/**
8
 * Performing full SQL-style joins in a distributed system like Elasticsearch is prohibitively expensive.
9
 * Instead, Elasticsearch offers two forms of join which are designed to scale horizontally.
10
 *
11
 * - "nested" query
12
 * Documents may contains fields of type nested. These fields are used to index arrays of objects, where each object can
13
 * be queried (with the nested query) as an independent document.
14
 *
15
 * - "has_child" and "has_parent" queries
16
 * A parent-child relationship can exist between two document types within a single index. The has_child query returns
17
 * parent documents whose child documents match the specified query, while the has_parent query returns child documents
18
 * whose parent document matches the specified query.
19
 *
20
 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/joining-queries.html
21
 */
22
abstract class AbstractQuery extends QueryDSL
23
{
24
    use HasQuery;
25
    use HasScoreMode;
26
}
27