Is there some way to use substring search in eZ Publish

Author Message

Jose Mourinho

Sunday 11 November 2007 6:51:15 am

Hello

I want ot ask is there some way to use substring searching in eZ publish.
If the there is "cars" record in some attribute and the user searches "car" then the "cars" record must be added to the results from searching.
In sql the function like does this.

Is there some extension or patch or trick to achieve substring search.

10x all

Gunnar Birkeland

Monday 12 November 2007 1:16:04 am

Hi Jose

Check the documentation for the ez-search module:
http://ez.no/doc/ez_publish/technical_manual/3_10/reference/modules/content/fetch_functions/search

And remember to use your preferred settings in site.ini.

[SearchSettings]
SearchEngine=eZSearchEngine
SearchViewHandling=default
LogSearchStats=enabled
AllowEmptySearch=disabled
EnableWildcard=false
MinCharacterWildcard=3
StopWordThresholdPercent=60
DelayedIndexing=disabled

gl

</major>
----------------------------
ez-version: 3.9.3.
PHP: 4.4.2-1
MYSQL: 4.0.24

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 21:07:51
Script start
Timing: Jan 18 2025 21:07:51
Module start 'layout'
Timing: Jan 18 2025 21:07:51
Module start 'content'
Timing: Jan 18 2025 21:07:52
Module end 'content'
Timing: Jan 18 2025 21:07:52
Script end

Main resources:

Total runtime0.8513 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 589.5859152.6563
Module start 'layout' 0.00760.0030 742.242239.5078
Module start 'content' 0.01060.8393 781.7500522.7500
Module end 'content' 0.84990.0014 1,304.50008.1094
Script end 0.8512  1,312.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4155160.0002
Check MTime0.00150.1707160.0001
Mysql Total
Database connection0.00080.099410.0008
Mysqli_queries0.803894.4240540.0149
Looping result0.00050.0625520.0000
Template Total0.813495.620.4067
Template load0.00260.311120.0013
Template processing0.810895.240920.4054
Template load and register function0.00020.018610.0002
states
state_id_array0.00170.202910.0017
state_identifier_array0.00150.174120.0007
Override
Cache load0.00220.2544170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.096220.0004
Fetch class attribute name0.00130.152230.0004
XML
Image XML parsing0.00060.073720.0003
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00080.0881160.0000
String conversion0.00000.001240.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs