Skip to content

Commit

Permalink
NGSTACK-836: rename parent child indexing to descendant indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Jun 10, 2024
1 parent 9980813 commit 88b873c
Show file tree
Hide file tree
Showing 19 changed files with 140 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private function processAsynchronousIndexingConfiguration(array $configuration,
private function processParentChildIndexingConfiguration(array $configuration, ContainerBuilder $container): void
{
$container->setParameter(
'netgen.ibexa_search_extra.parent_child_indexing.configuration',
'netgen.ibexa_search_extra.descendant_indexing.configuration',
$configuration['hierarchical_indexing']['descendant_indexing'],
);
}
Expand Down
2 changes: 1 addition & 1 deletion bundle/NetgenIbexaSearchExtraBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function build(ContainerBuilder $container): void
$container->addCompilerPass(new Compiler\AggregateFacetBuilderVisitorPass());
$container->addCompilerPass(new Compiler\AggregateSubdocumentQueryCriterionVisitorPass());
$container->addCompilerPass(new Compiler\AsynchronousIndexingPass());
$container->addCompilerPass(new Compiler\ParentChildIndexingPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 100);
$container->addCompilerPass(new Compiler\DescendantIndexingPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 100);
$container->addCompilerPass(new Compiler\FieldType\RichTextIndexablePass());
$container->addCompilerPass(new Compiler\SearchResultExtractorPass());
$container->addCompilerPass(new Compiler\RawFacetBuilderDomainVisitorPass());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

class ParentChildIndexingPass implements CompilerPassInterface
class DescendantIndexingPass implements CompilerPassInterface
{
private const ParentChildConfigurationParameter = 'netgen.ibexa_search_extra.parent_child_indexing.configuration';
private const ParentChildMessageHandlerTag = 'netgen.ibexa_search_extra.parent_child_indexing.message_handler';
private const ParentChildConfigurationParameter = 'netgen.ibexa_search_extra.descendant_indexing.configuration';
private const ParentChildMessageHandlerTag = 'netgen.ibexa_search_extra.descendant_indexing.message_handler';
private const MessageHandlerTag = 'messenger.message_handler';
private const ParentChildSolrContentFieldMapperServiceId = 'netgen.ibexa_search_extra.solr.field_mapper.parent_child_indexing.content';
private const ParentChildSolrContentFieldMapperTag = 'netgen.ibexa_search_extra.solr.field_mapper.parent_child_indexing.content';
private const ParentChildSolrContentTranslationFieldMapperServiceId = 'netgen.ibexa_search_extra.solr.field_mapper.parent_child_indexing.content.translation';
private const ParentChildSolrContentTranslationFieldMapperTag = 'netgen.ibexa_search_extra.solr.field_mapper.parent_child_indexing.content.translation';
private const ParentChildSolrLocationFieldMapperServiceId = 'netgen.ibexa_search_extra.solr.field_mapper.parent_child_indexing.location';
private const ParentChildSolrLocationFieldMapperTag = 'netgen.ibexa_search_extra.solr.field_mapper.parent_child_indexing.location';
private const ParentChildSolrContentFieldMapperServiceId = 'netgen.ibexa_search_extra.solr.field_mapper.descendant_indexing.content';
private const ParentChildSolrContentFieldMapperTag = 'netgen.ibexa_search_extra.solr.field_mapper.descendant_indexing.content';
private const ParentChildSolrContentTranslationFieldMapperServiceId = 'netgen.ibexa_search_extra.solr.field_mapper.descendant_indexing.content.translation';
private const ParentChildSolrContentTranslationFieldMapperTag = 'netgen.ibexa_search_extra.solr.field_mapper.descendant_indexing.content.translation';
private const ParentChildSolrLocationFieldMapperServiceId = 'netgen.ibexa_search_extra.solr.field_mapper.descendant_indexing.location';
private const ParentChildSolrLocationFieldMapperTag = 'netgen.ibexa_search_extra.solr.field_mapper.descendant_indexing.location';

public function process(ContainerBuilder $container): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function mapFields(SPIContent $content, $languageCode): array

public function getIdentifier(): string
{
return 'ng_parent_child_indexing_fulltext';
return 'ng_descendant_indexing_fulltext';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Resources/config/search/common.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
imports:
- { resource: common/asynchronous_indexing.yaml }
- { resource: common/field_value_mappers.yaml }
- { resource: common/parent_child_indexing.yaml }
- { resource: common/descendant_indexing.yaml }
10 changes: 10 additions & 0 deletions lib/Resources/config/search/common/descendant_indexing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
imports:
- { resource: descendant_indexing/common.yaml }
- { resource: descendant_indexing/content.yaml }
- { resource: descendant_indexing/location.yaml }
- { resource: descendant_indexing/object_state.yaml }
- { resource: descendant_indexing/section.yaml }
- { resource: descendant_indexing/trash.yaml }

parameters:
netgen.ibexa_search_extra.descendant_indexing.configuration: []
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
services:
netgen.ibexa_search_extra.parent_child_indexing.ancestor_path_generator:
netgen.ibexa_search_extra.descendant_indexing.ancestor_path_generator:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\AncestorPathGenerator
arguments:
- '%netgen.ibexa_search_extra.parent_child_indexing.configuration%'
- '%netgen.ibexa_search_extra.descendant_indexing.configuration%'

netgen.ibexa_search_extra.parent_child_indexing.ancestor_resolver:
netgen.ibexa_search_extra.descendant_indexing.ancestor_resolver:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\AncestorResolver
arguments:
- '@Ibexa\Core\Persistence\Legacy\Content\Handler'
- '@Ibexa\Contracts\Core\Persistence\Content\Type\Handler'
- '@Ibexa\Core\Persistence\Cache\LocationHandler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_path_generator'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_path_generator'

netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer:
netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\AncestorIndexer
arguments:
- '@Ibexa\Contracts\Core\Search\VersatileHandler'
- '@Ibexa\Core\Persistence\Legacy\Content\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_resolver'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_resolver'
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
services:
netgen.ibexa_search_extra.parent_child_indexing.message_handler.copy_content:
netgen.ibexa_search_extra.descendant_indexing.message_handler.copy_content:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Content\CopyContentHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.delete_content:
netgen.ibexa_search_extra.descendant_indexing.message_handler.delete_content:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Content\DeleteContentHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.delete_translation:
netgen.ibexa_search_extra.descendant_indexing.message_handler.delete_translation:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Content\DeleteTranslationHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Handler'
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.hide_content:
netgen.ibexa_search_extra.descendant_indexing.message_handler.hide_content:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Content\HideContentHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.publish_version:
netgen.ibexa_search_extra.descendant_indexing.message_handler.publish_version:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Content\PublishVersionHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.reveal_content:
netgen.ibexa_search_extra.descendant_indexing.message_handler.reveal_content:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Content\RevealContentHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.update_content_metadata:
netgen.ibexa_search_extra.descendant_indexing.message_handler.update_content_metadata:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Content\UpdateContentMetadataHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Handler'
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }
Original file line number Diff line number Diff line change
@@ -1,90 +1,90 @@
services:
netgen.ibexa_search_extra.parent_child_indexing.message_handler.assign_section_to_subtree:
netgen.ibexa_search_extra.descendant_indexing.message_handler.assign_section_to_subtree:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Location\AssignSectionToSubtreeHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.copy_subtree:
netgen.ibexa_search_extra.descendant_indexing.message_handler.copy_subtree:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Location\CopySubtreeHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.create_location:
netgen.ibexa_search_extra.descendant_indexing.message_handler.create_location:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Location\CreateLocationHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.delete_location:
netgen.ibexa_search_extra.descendant_indexing.message_handler.delete_location:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Location\DeleteLocationHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.hide_location:
netgen.ibexa_search_extra.descendant_indexing.message_handler.hide_location:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Location\HideLocationHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.move_subtree:
netgen.ibexa_search_extra.descendant_indexing.message_handler.move_subtree:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Location\MoveSubtreeHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.swap_location:
netgen.ibexa_search_extra.descendant_indexing.message_handler.swap_location:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Location\SwapLocationHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.unhide_location:
netgen.ibexa_search_extra.descendant_indexing.message_handler.unhide_location:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Location\UnhideLocationHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }

netgen.ibexa_search_extra.parent_child_indexing.message_handler.update_location:
netgen.ibexa_search_extra.descendant_indexing.message_handler.update_location:
class: Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ParentChildIndexing\Location\UpdateLocationHandler
arguments:
- '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'
- '@netgen.ibexa_search_extra.parent_child_indexing.ancestor_indexer'
- '@netgen.ibexa_search_extra.descendant_indexing.ancestor_indexer'
- '@?logger'
tags:
- { name: netgen.ibexa_search_extra.parent_child_indexing.message_handler }
- { name: netgen.ibexa_search_extra.descendant_indexing.message_handler }
- { name: monolog.logger, channel: ngsearchextra }
Loading

0 comments on commit 88b873c

Please sign in to comment.