Skip to content

Commit

Permalink
Introduce method to unset the query string
Browse files Browse the repository at this point in the history
This resolves TYPO3-Solr#4135
  • Loading branch information
rr-it authored Aug 19, 2024
1 parent dfcdd98 commit f646ae7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Classes/Domain/Search/SearchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,17 @@ public function setRawQueryString(string $rawQueryString = ''): SearchRequest
return $this;
}

/**
* Unsets the query string.
*/
public function removeQueryString(): SearchRequest
{
$this->stateChanged = true;
$path = $this->prefixWithNamespace('q');
$this->argumentsAccessor->reset($path);
return $this;
}

/**
* Returns the passed rawQueryString.
*/
Expand Down

0 comments on commit f646ae7

Please sign in to comment.