Skip to content

Commit

Permalink
Convert UserEnabledFieldMapper to block mapper, make criterion visito…
Browse files Browse the repository at this point in the history
…r available for both content and location search
  • Loading branch information
hknezevic committed Jan 13, 2025
1 parent 76bb602 commit 2e21447
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Netgen\IbexaSearchExtra\Core\Search\Solr\Query\Content\CriterionVisitor;
namespace Netgen\IbexaSearchExtra\Core\Search\Solr\Query\Common\CriterionVisitor;

use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;
use Ibexa\Contracts\Solr\Query\CriterionVisitor;
Expand Down
3 changes: 2 additions & 1 deletion lib/Resources/config/search/solr/criterion_visitors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ services:
- { name: ibexa.search.solr.query.location.criterion.visitor }

netgen.ibexa_search_extra.solr.query.content.criterion_visitor.user_enabled:
class: Netgen\IbexaSearchExtra\Core\Search\Solr\Query\Content\CriterionVisitor\UserEnabled
class: Netgen\IbexaSearchExtra\Core\Search\Solr\Query\Common\CriterionVisitor\UserEnabled
tags:
- { name: ibexa.search.solr.query.content.criterion.visitor }
- { name: ibexa.search.solr.query.location.criterion.visitor }
4 changes: 2 additions & 2 deletions lib/Resources/config/search/solr/field_mappers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
tags:
- { name: ibexa.search.solr.field.mapper.location }

netgen.ibexa_search_extra.solr.field_mapper.content.user_enabled:
netgen.ibexa_search_extra.solr.field_mapper.common.user_enabled:
class: Netgen\IbexaSearchExtra\Core\Search\Solr\FieldMapper\Content\UserEnabledFieldMapper
tags:
- { name: ibexa.search.solr.field.mapper.content }
- { name: ibexa.search.solr.field.mapper.block }

0 comments on commit 2e21447

Please sign in to comment.