Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.1.24'
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jul 6, 2023
2 parents 06cbf2d + af5174f commit e5491f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [v2.1.24](https://github.com/roadiz/core-bundle-dev-app/compare/v2.1.23...v2.1.24) (2023-07-06)


### Bug Fixes

* **Search engine:** Do not add quotes if multi-word exact query, Solr Helper already does it ([b0aa80a](https://github.com/roadiz/core-bundle-dev-app/commit/b0aa80a139c576b5729cb8d049f9bc3e38d64f70))

## [v2.1.23](https://github.com/roadiz/core-bundle-dev-app/compare/v2.1.22...v2.1.23) (2023-07-02)


Expand Down
2 changes: 1 addition & 1 deletion lib/RoadizCoreBundle/config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
parameters:
roadiz_core.cms_version: '2.1.23'
roadiz_core.cms_version: '2.1.24'
roadiz_core.cms_version_prefix: 'main'
env(APP_NAMESPACE): "roadiz"
env(APP_VERSION): "0.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ public function escapeQuery(string $input): string
protected function getFormattedQuery(string $q, int $proximity = 1): array
{
$q = trim($q);
$singleWord = $this->isQuerySingleWord($q);
/**
* Generate a fuzzy query by appending proximity to each word
* @see https://lucene.apache.org/solr/guide/6_6/the-standard-query-parser.html#TheStandardQueryParser-FuzzySearches
Expand All @@ -256,12 +255,6 @@ protected function getFormattedQuery(string $q, int $proximity = 1): array
* Only escape exact query
*/
$exactQuery = $this->escapeQuery($q);
if (!$singleWord) {
/*
* adds quotes if multi word exact query
*/
$exactQuery = '"' . $exactQuery . '"';
}
/*
* Wildcard search for allowing autocomplete
*/
Expand Down

0 comments on commit e5491f5

Please sign in to comment.