@@ 18-47 (lines=30) @@ | ||
15 | use AmaTeam\ElasticSearch\Mapping\Parameter\SimilarityParameter; |
|
16 | use AmaTeam\ElasticSearch\Mapping\Parameter\StoreParameter; |
|
17 | ||
18 | class KeywordType extends AbstractType |
|
19 | { |
|
20 | const ID = 'keyword'; |
|
21 | const FRIENDLY_ID = self::ID; |
|
22 | ||
23 | public function getId(): string |
|
24 | { |
|
25 | return self::ID; |
|
26 | } |
|
27 | ||
28 | /** |
|
29 | * @inheritDoc |
|
30 | */ |
|
31 | public function getParameters(): array |
|
32 | { |
|
33 | return [ |
|
34 | DocValuesParameter::getInstance(), |
|
35 | EagerGlobalOrdinalsParameter::getInstance(), |
|
36 | // TODO: fields parameter |
|
37 | IgnoreAboveParameter::getInstance(), |
|
38 | IndexParameter::getInstance(), |
|
39 | IndexOptionsParameter::getInstance(), |
|
40 | NormsParameter::getInstance(), |
|
41 | NullValueParameter::getInstance(), |
|
42 | StoreParameter::getInstance(), |
|
43 | SimilarityParameter::getInstance(), |
|
44 | NormalizerParameter::getInstance(), |
|
45 | ]; |
|
46 | } |
|
47 | } |
|
48 |
@@ 19-51 (lines=33) @@ | ||
16 | use AmaTeam\ElasticSearch\Mapping\Parameter\StoreParameter; |
|
17 | use AmaTeam\ElasticSearch\Mapping\Parameter\TermVectorParameter; |
|
18 | ||
19 | class TextType extends AbstractType |
|
20 | { |
|
21 | const ID = 'text'; |
|
22 | const FRIENDLY_ID = self::ID; |
|
23 | ||
24 | public function getId(): string |
|
25 | { |
|
26 | return self::ID; |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @inheritDoc |
|
31 | */ |
|
32 | public function getParameters(): array |
|
33 | { |
|
34 | return [ |
|
35 | AnalyzerParameter::getInstance(), |
|
36 | EagerGlobalOrdinalsParameter::getInstance(), |
|
37 | FieldDataParameter::getInstance(), |
|
38 | // TODO: add fielddata_frequency_filter parameter |
|
39 | // TODO: add fields parameter |
|
40 | IndexParameter::getInstance(), |
|
41 | IndexOptionsParameter::getInstance(), |
|
42 | NormsParameter::getInstance(), |
|
43 | PositionIncrementGapParameter::getInstance(), |
|
44 | StoreParameter::getInstance(), |
|
45 | SearchAnalyzerParameter::getInstance(), |
|
46 | // TODO: add search_quote_analyzer parameter |
|
47 | SimilarityParameter::getInstance(), |
|
48 | TermVectorParameter::getInstance(), |
|
49 | ]; |
|
50 | } |
|
51 | } |
|
52 |