search not working - bug in ezCharTransform?

Author Message

Erlend Halvorsen

Tuesday 20 March 2007 3:49:08 am

Hi!

I'm setting up search on a website based on eZ 3.9.0, but nothing turns up in the search results. I started by enabling SQL debug, and noticed that the query on the index said "WHERE word='????' when I searched for "News". Digging a little further, I found that

        $trans =& eZCharTransform::instance();
        $trans->transformByGroup( $text, 'search' ); 

returns "?????". It seems the conversion code is broken. My site is using utf-8. Any ideas?

-Erlend

Erlend Halvorsen

Wednesday 04 April 2007 12:58:16 am

I just upgraded to 3.9.1 and the bug is still there. Searching for "Nyheter", this is what shows up in the debug output:

SELECT id, word, object_count FROM ezsearch_word where  word='???????'  ORDER BY object_count

Then, further down:

SELECT id FROM ezsearch_search_phrase WHERE phrase='nyheter'

I have no idea how to fix this..

-Erlend

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.