Search in 3.4.2 don't work as I hope.

Author Message

Lars Tore Gustavsen

Thursday 07 October 2004 2:12:39 am

I have a search, that search only for words in article or in folder in ez-3.4.1.
After upgrading to 3.4.2 my search match everything, images, files...

Here is code from my template override:

{section show=$use_template_search}
    {set page_limit=10}
    {set search=fetch(content,search,
                      hash(text,$search_text,
                      class_id,array(2,1),
                           subtree_array,$search_subtree_array,
                           sort_by,array('modified',false()),
                           offset,$view_parameters.offset,
                           limit,$page_limit))}
    {set search_result=$search['SearchResult']}
    {set search_count=$search['SearchCount']}
    {set stop_word_array=$search['StopWordArray']}
    {set search_data=$search}
{/section}

What have changed in 3.4.2.

laurent le cadet

Thursday 07 October 2004 2:25:30 am

Hi Lars,

I'm not really sure but you can choose if a classe attribute is searchable or not (admin).

Laurent

Lars Tore Gustavsen

Tuesday 12 October 2004 12:27:52 am

Thank you. for your suggestion. Looks like a nice workaround.
Now I just have to recompile php so i can run updatesearchindex.php and clear the search index.

I am still very confused why the class_id,array(2,1) parameter don't work anymore.

Lars Tore Gustavsen

Frederik Holljen

Tuesday 12 October 2004 12:31:47 am

Can you please file a detailed bug report? We should look into this.

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 31 2025 01:27:46
Script start
Timing: Jan 31 2025 01:27:46
Module start 'layout'
Timing: Jan 31 2025 01:27:46
Module start 'content'
Timing: Jan 31 2025 01:27:46
Module end 'content'
Timing: Jan 31 2025 01:27:46
Script end

Main resources:

Total runtime0.0267 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.2500151.2266
Module start 'layout' 0.00520.0043 739.4766220.7188
Module start 'content' 0.00950.0154 960.1953997.9297
Module end 'content' 0.02490.0017 1,958.125033.9922
Script end 0.0267  1,992.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.3881140.0002
Check MTime0.00114.1778140.0001
Mysql Total
Database connection0.00113.987610.0011
Mysqli_queries0.00238.667030.0008
Looping result0.00000.052710.0000
Template Total0.00124.610.0012
Template load0.00093.496610.0009
Template processing0.00031.063210.0003
Override
Cache load0.00072.494210.0007
General
dbfile0.00207.571780.0003
String conversion0.00000.033940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs