customizing advanced search

Author Message

Marko Žmak

Thursday 11 May 2006 11:22:22 pm

Hi. I checked out the docs for customizing advanced search here:

http://ez.no/products/ez_publish/documentation/customization/components/search/custom_search_box

and I copied the exact example for attribute search (of course changed the attribute ID) but the search is not working. I get the search results as if I used normal search with a text box named "SearchText".

Yes, the attribute I'm searching by is set to searchable, and I did update the search index and cleared the cache. And yes, the attribute ID is correct. And again, yes I did set AllowEmptySearch=enabled.

I'm NOT using template search.

What am I doing wrong, can comeone give a tip or an example that works?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 06:05:49
Script start
Timing: Jan 31 2025 06:05:49
Module start 'layout'
Timing: Jan 31 2025 06:05:49
Module start 'content'
Timing: Jan 31 2025 06:05:49
Module end 'content'
Timing: Jan 31 2025 06:05:49
Script end

Main resources:

Total runtime0.0134 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.1328151.2109
Module start 'layout' 0.00500.0023 739.343836.6484
Module start 'content' 0.00730.0049 775.992286.0469
Module end 'content' 0.01220.0012 862.039129.9922
Script end 0.0134  892.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002115.5772140.0001
Check MTime0.00107.7770140.0001
Mysql Total
Database connection0.00064.792610.0006
Mysqli_queries0.003223.551830.0011
Looping result0.00000.060510.0000
Template Total0.00096.710.0009
Template load0.00075.433310.0007
Template processing0.00021.224410.0002
Override
Cache load0.00053.934810.0005
General
dbfile0.001611.975280.0002
String conversion0.00000.035640.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