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.

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

Main resources:

Total runtime0.0194 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.0070 588.1406151.2109
Module start 'layout' 0.00700.0042 739.351636.6641
Module start 'content' 0.01110.0064 776.015698.0469
Module end 'content' 0.01760.0018 874.062537.9922
Script end 0.0193  912.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002713.6933140.0002
Check MTime0.00115.7863140.0001
Mysql Total
Database connection0.00073.366410.0007
Mysqli_queries0.004121.404730.0014
Looping result0.00000.145210.0000
Template Total0.00136.610.0013
Template load0.00094.832410.0009
Template processing0.00031.698610.0003
Override
Cache load0.00063.256910.0006
General
dbfile0.00157.889880.0002
String conversion0.00000.045540.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