Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update signatures with ibexa 4.6 changes #8

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading