Help make a search.

Author Message

Kruglova Natasha

Friday 17 July 2009 3:40:28 am

Good day, help make a search.

Now search on the site happened to the exact search phrase.
Example code:
select * from name_table where name_field ='search_word'

Where changes to the search results took place on any part of speech?
Example code:
select * from name_table where name_field like '%search_word%'

I would like to appear in the search for all words, where the presence of a combination of characters.
Sample.

I wrote to the search for the word "war", the result should be:
- freeware
- war
- Software
- Warehouse
- Shareware
- Warcraft
etc.

Gaetano Giunta

Friday 17 July 2009 4:28:40 am

Use ezfind, and you will get an enterprise-level serach engine, that you can tune to your needs

Principal Consultant International Business
Member of the Community Project Board

Max Keil

Friday 17 July 2009 5:06:10 am

Hi Natasha,

if you do not want to use ezfind, you can setup up your site.ini.append.php like this:

[SearchSettings]
EnableWildcard=true

after that you can use control chars like * to search for all objects, which contains this word.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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 15:08:29
Script start
Timing: Jan 18 2025 15:08:29
Module start 'layout'
Timing: Jan 18 2025 15:08:29
Module start 'content'
Timing: Jan 18 2025 15:08:31
Module end 'content'
Timing: Jan 18 2025 15:08:31
Script end

Main resources:

Total runtime1.4782 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.7969152.6094
Module start 'layout' 0.00530.0032 740.406339.4297
Module start 'content' 0.00851.4683 779.8359579.2813
Module end 'content' 1.47690.0013 1,359.117212.1875
Script end 1.4781  1,371.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2303160.0002
Check MTime0.00150.0989160.0001
Mysql Total
Database connection0.00080.053610.0008
Mysqli_queries1.424796.3818590.0241
Looping result0.00070.0473570.0000
Template Total1.440797.520.7203
Template load0.00210.140520.0010
Template processing1.438697.319820.7193
Template load and register function0.00030.018010.0003
states
state_id_array0.00160.110110.0016
state_identifier_array0.00120.082920.0006
Override
Cache load0.00180.1193300.0001
Sytem overhead
Fetch class attribute can translate value0.00140.096130.0005
Fetch class attribute name0.00150.098250.0003
XML
Image XML parsing0.00130.085430.0004
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00160.1080220.0001
String conversion0.00000.000540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs