File tree Expand file tree Collapse file tree 8 files changed +21
-2
lines changed
SearchIndexAdapter/OpenSearch
QueryLanguage/FieldNameValidator
Service/Search/SearchService Expand file tree Collapse file tree 8 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 2222
2323/**
2424 * @internal
25-
2625 */
2726final readonly class IndexIconUpdateService implements IndexIconUpdateServiceInterface
2827{
Original file line number Diff line number Diff line change 2525use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \SearchIndexConfigServiceInterface ;
2626use Pimcore \Model \DataObject \ClassDefinition \Data ;
2727
28+ /**
29+ * @internal
30+ */
2831readonly class IndexMappingService implements IndexMappingServiceInterface
2932{
3033 public function __construct (
Original file line number Diff line number Diff line change 2626use Pimcore \Bundle \GenericDataIndexBundle \Traits \LoggerAwareTrait ;
2727use Pimcore \SearchClient \SearchClientInterface ;
2828
29+ /**
30+ * @internal
31+ */
2932final class IndexStatsService implements IndexStatsServiceInterface
3033{
3134 use LoggerAwareTrait;
Original file line number Diff line number Diff line change 2121use Pimcore \Bundle \GenericDataIndexBundle \SearchIndexAdapter \OpenSearch \QueryLanguage \FieldNameValidatorInterface ;
2222use Symfony \Component \DependencyInjection \Attribute \AsTaggedItem ;
2323
24+ /**
25+ * @internal
26+ */
2427#[AsTaggedItem(priority: 0 )]
2528final readonly class FieldExistsValidator implements FieldNameValidatorInterface
2629{
Original file line number Diff line number Diff line change 2222use Pimcore \Tool ;
2323use Symfony \Component \DependencyInjection \Attribute \AsTaggedItem ;
2424
25+ /**
26+ * @internal
27+ */
2528#[AsTaggedItem(priority: 1 )]
2629final readonly class LocalizedFieldValidator implements FieldNameValidatorInterface
2730{
Original file line number Diff line number Diff line change 2121use Pimcore \Bundle \GenericDataIndexBundle \SearchIndexAdapter \OpenSearch \QueryLanguage \FieldNameValidatorInterface ;
2222use Symfony \Component \DependencyInjection \Attribute \AsTaggedItem ;
2323
24+ /**
25+ * @internal
26+ */
2427#[AsTaggedItem(priority: 2 )]
2528final readonly class RelationValidator implements FieldNameValidatorInterface
2629{
Original file line number Diff line number Diff line change 2424use Pimcore \Bundle \GenericDataIndexBundle \SearchIndexAdapter \SearchIndexServiceInterface ;
2525use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \SearchIndexConfigServiceInterface ;
2626
27+ /**
28+ * @internal
29+ */
2730final readonly class FetchIdsBySearchService implements FetchIdsBySearchServiceInterface
2831{
2932 public function __construct (
Original file line number Diff line number Diff line change 2626use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \IndexService \ElementTypeAdapter \AssetTypeAdapter ;
2727use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \IndexService \ElementTypeAdapter \DataObjectTypeAdapter ;
2828use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \IndexService \ElementTypeAdapter \DocumentTypeAdapter ;
29+ use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \SearchIndexConfigServiceInterface ;
2930
3031/**
3132 * @internal
@@ -36,6 +37,7 @@ public function __construct(
3637 private AssetTypeAdapter $ assetTypeAdapter ,
3738 private DataObjectTypeAdapter $ dataObjectTypeAdapter ,
3839 private DocumentTypeAdapter $ documentTypeAdapter ,
40+ private SearchIndexConfigServiceInterface $ searchIndexConfigService
3941 ) {
4042 }
4143
@@ -56,7 +58,7 @@ public function resolveIndexName(SearchInterface $search): string
5658 }
5759
5860 if ($ search instanceof ElementSearch) {
59- return IndexName::ELEMENT_SEARCH ->value ;
61+ return $ this -> searchIndexConfigService -> getIndexName ( IndexName::ELEMENT_SEARCH ->value ) ;
6062 }
6163
6264 throw new InvalidArgumentException ('Unsupported search type: ' . get_class ($ search ));
You can’t perform that action at this time.
0 commit comments