Skip to content

Commit

Permalink
Update signatures with ibexa 4.6 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wizhippo committed Feb 14, 2024
1 parent 0f21127 commit baa50f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Container/Compiler/FieldType/RichTextIndexablePass.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private function redefineIndexableImplementation(ContainerBuilder $container, $s
$definition = $container->findDefinition(SearchField::class);

$definition->setClass(IndexableRichText::class);
$definition->setArgument(0, $shortTextLimit);
$definition->setArguments([$shortTextLimit]);
$definition->addTag('ibexa.field_type.indexable', ['alias' => 'ezrichtext']);

$container->setDefinition(SearchField::class, $definition);
Expand Down
2 changes: 2 additions & 0 deletions lib/Core/Search/Solr/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function findContent(Query $query, array $languageFilter = []): SearchRes
$query->facetBuilders,
$query->aggregations,
$languageFilter,
$query->spellcheck,
$query,
);
}
Expand All @@ -51,6 +52,7 @@ public function findLocations(LocationQuery $query, array $languageFilter = []):
$query->facetBuilders,
$query->aggregations,
$languageFilter,
$query->spellcheck,
$query,
);
}
Expand Down
2 changes: 2 additions & 0 deletions lib/Core/Search/Solr/ResultExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Netgen\IbexaSearchExtra\Core\Search\Solr;

use Ibexa\Contracts\Core\Repository\Values\Content\Query;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Spellcheck;
use Ibexa\Contracts\Core\Repository\Values\Content\Search\SearchResult;
use Ibexa\Solr\ResultExtractor as BaseResultExtractor;
use Netgen\IbexaSearchExtra\API\Values\Content\Search\LocationQuery as ExtraLocationQuery;
Expand All @@ -28,6 +29,7 @@ public function extract(
array $facetBuilders = [],
array $aggregations = [],
array $languageFilter = [],
?Spellcheck $spellcheck = null,
?Query $query = null
): SearchResult {
$searchResult = $this->extractSearchResult(
Expand Down

0 comments on commit baa50f4

Please sign in to comment.