Skip to content

Commit

Permalink
Add NotInCondition to Solr Adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshY committed Oct 15, 2024
1 parent 27c76c6 commit 42497ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/seal-solr-adapter/src/SolrSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,11 @@ private function recursiveResolveFilterConditions(Index $index, array $condition
$filters = [];

foreach ($conditions as $filter) {
if ($filter instanceof Condition\InCondition) {
$filter = $filter->createOrCondition();
}
$filter = match (true) {
$filter instanceof Condition\InCondition => $filter->createOrCondition(),
$filter instanceof Condition\NotInCondition => $filter->createAndCondition(),
default => $filter,
};

match (true) {
$filter instanceof Condition\SearchCondition => $queryText = $filter->query,
Expand Down

0 comments on commit 42497ba

Please sign in to comment.