Coroico / AdvSearch

Dynamic content search add-on for MODx Revolution that supports results highlighting, faceted search and search in custom packages
21 stars 14 forks source link

searchstring with accentuated characters #9

Closed Coroico closed 12 years ago

Coroico commented 12 years ago

It doesn't be possible to do a search with a searchterm with accentuated characters.

"über" wich means "over" or "ähnlich" wich means "similar". Even words with accent in french are not possible like "téléphone".

Coroico commented 12 years ago

To fix this issue, line 183 of the file core/components/advsearch/model/advsearch/classes/advsearch.class.php replace:

        $searchQuery = Zend_Search_Lucene_Search_QueryParser::parse($searchString);

by:

        $searchQuery = Zend_Search_Lucene_Search_QueryParser::parse($searchString, $this->config['charset']);
Coroico commented 12 years ago

Fixed with dc6e5a8591 commit