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.

eZ debug

Timing: Jan 18 2025 11:25:34
Script start
Timing: Jan 18 2025 11:25:34
Module start 'layout'
Timing: Jan 18 2025 11:25:34
Module start 'content'
Timing: Jan 18 2025 11:25:35
Module end 'content'
Timing: Jan 18 2025 11:25:35
Script end

Main resources:

Total runtime0.9425 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.0469152.6406
Module start 'layout' 0.00640.0028 740.687539.4766
Module start 'content' 0.00920.9312 780.1641426.2734
Module end 'content' 0.94050.0020 1,206.43758.1250
Script end 0.9425  1,214.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3632160.0002
Check MTime0.00150.1642160.0001
Mysql Total
Database connection0.00100.105710.0010
Mysqli_queries0.898595.3253520.0173
Looping result0.00040.0436500.0000
Template Total0.907996.320.4540
Template load0.00260.270720.0013
Template processing0.905396.052920.4527
Template load and register function0.00030.029110.0003
states
state_id_array0.00320.339110.0032
state_identifier_array0.00380.399120.0019
Override
Cache load0.00170.1753150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.067510.0006
Fetch class attribute name0.00110.114320.0005
XML
Image XML parsing0.00010.009910.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00060.0630100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0003 secs