-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcommon.yml
More file actions
65 lines (59 loc) · 2.4 KB
/
common.yml
File metadata and controls
65 lines (59 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
imports:
- {resource: search_engines/field_value_mappers.yml}
parameters:
ibexa.search.common.field_name_generator.map:
ez_integer: 'i'
ez_minteger: 'mi'
ez_id: 'id'
ez_mid: 'mid'
ez_string: 's'
ez_mstring: 'ms'
ez_long: 'l'
ez_text: 't'
ez_html: 'h'
ez_boolean: 'b'
ez_mboolean: 'mb'
ez_float: 'f'
ez_double: 'd'
ez_date: 'dt'
ez_point: 'p'
ez_currency: 'c'
ez_geolocation: 'gl'
ez_document: 'doc'
ez_fulltext: 'fulltext'
ibexa_dense_vector_ada002: 'ada002_dv'
ibexa_dense_vector_3small: '3small_dv'
ibexa_dense_vector_3large: '3large_dv'
# Allows generic mapping of embedding field types (`ibexa_dense_vector_<suffix>`) without per-model entries.
ibexa.search.common.field_name_generator.fallback_prefixes:
- 'ibexa_dense_vector_'
services:
# Note: services tagged with 'ibexa.field_type.indexable'
# are registered to this one using compilation pass
Ibexa\Core\Search\Common\FieldRegistry:
class: Ibexa\Core\Search\Common\FieldRegistry
# Mapping for our internal search field types
Ibexa\Core\Search\Common\FieldNameGenerator:
class: Ibexa\Core\Search\Common\FieldNameGenerator
arguments:
- '%ibexa.search.common.field_name_generator.map%'
- '%ibexa.search.common.field_name_generator.fallback_prefixes%'
Ibexa\Core\Search\Common\FieldNameResolver:
class: Ibexa\Core\Search\Common\FieldNameResolver
arguments:
- '@Ibexa\Core\Search\Common\FieldRegistry'
- '@Ibexa\Contracts\Core\Persistence\Content\Type\Handler'
- '@Ibexa\Core\Search\Common\FieldNameGenerator'
# Note: services tagged with 'ibexa.search.common.field_value.mapper'
# are registered to this one using compilation pass
Ibexa\Core\Search\Common\FieldValueMapper\Aggregate:
class: Ibexa\Core\Search\Common\FieldValueMapper\Aggregate
Ibexa\Core\Search\Common\EventSubscriber\:
resource: '../../../Search/Common/EventSubscriber/*'
exclude: '../../../Search/Common/EventSubscriber/{AbstractSearchEventSubscriber}'
autoconfigure: true
autowire: true
public: false
arguments:
$searchHandler: '@ibexa.spi.search'
$persistenceHandler: '@ibexa.api.persistence_handler'