Forums / Developer / Search is too strict..howto change?

Search is too strict..howto change?

Author Message

K259

Monday 15 August 2005 1:46:54 pm

I want that the visitors of my website shall be able to search and get a list of all variations of a word.

How/Where can I implement in EZ that when the vistors searches, then the word search is %searchtext% which gives variations of words, and not that the visitors have to type the exact word?

Gabriel Ambuehl

Tuesday 16 August 2005 1:51:30 am

I once tried this. Only thing I can say for sure isn't very straight forward. It might be easier to write your own module to search through the index...

Visit http://triligon.org

K259

Tuesday 16 August 2005 2:25:17 am

So, it's hard to make this easy little "thing" in eZ? In other cms you can just add % in front or/and after the searchvariable in the sql-query..

Gabriel Ambuehl

Tuesday 16 August 2005 4:24:01 am

Well you could try. I gave up after an hour trying to figure out how exactly the search works.

I might try again when I really need it.

(Someone mentioned that while adding like to queries might work, the functions that format the results could become confused by multiple returns)

Visit http://triligon.org

K259

Tuesday 16 August 2005 4:25:55 am

I really need it, heeeelp :p

Hmm..is this so complicated in ez...do I have to rewrite the total searchengine to achieve this?

David Eriksson

Tuesday 16 August 2005 4:38:42 am

Turn on wildcards?

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/configuration_files/site_ini/searchsettings/enablewildcard

/David

K259

Tuesday 16 August 2005 4:59:14 am

No, don't want to turn on this feature, just want to enable that the user searches in %searchtext% and not has to type the exactly searchword..

Gabriel Ambuehl

Tuesday 16 August 2005 5:27:12 am

Oh, I wasn't aware of the wildcard feature.

What you could probably do: use Javascript or patch the beginning of the search code to change the query to "*searchword*".

I wasnt aware of the wildcard searching feature, that is sweet!

Visit http://triligon.org

K259

Tuesday 16 August 2005 5:38:13 am

It's not sweet when you have lots of users who are searching with the wildcards ....it may make your mysql-db crash..because ez starts to many not so very optimized sql-queries and too many sql queries..

So be careful..

jb bianchi

Wednesday 17 August 2005 1:45:26 am

hi,

In the advancedsearch, we can do the search with :
seach text or phrasesearchtext but not with AnywordSearchText.
Do you know what I have to do to search any words.

eZ debug

Timing: Jan 31 2025 04:15:32
Script start
Timing: Jan 31 2025 04:15:32
Module start 'content'
Timing: Jan 31 2025 04:15:32
Module end 'content'
Timing: Jan 31 2025 04:15:33
Script end

Main resources:

Total runtime0.1355 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.0859180.8281
Module start 'content' 0.00620.0054 769.9141101.7734
Module end 'content' 0.01160.1238 871.6875529.9219
Script end 0.1354  1,401.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.5032200.0002
Check MTime0.00130.9930200.0001
Mysql Total
Database connection0.00070.532010.0007
Mysqli_queries0.091967.84991410.0007
Looping result0.00110.77941390.0000
Template Total0.123591.110.1235
Template load0.00080.593310.0008
Template processing0.122790.541910.1227
Override
Cache load0.00060.408010.0006
Sytem overhead
Fetch class attribute can translate value0.00080.593310.0008
XML
Image XML parsing0.00020.154810.0002
General
dbfile0.00725.3081200.0004
String conversion0.00000.004630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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