Advanced search OR

Author Message

Julien Plesniak

Wednesday 18 July 2007 2:34:46 am

Hello,
for beginning, sorry for my english.

I want to do an advanced search with OR condition.

Example: If i search "word letter", i want to return all the results who contains "word" OR "letter". Is it possible in ez-publish 3.9.2? or how modify the search engine to do that?

I think there is one personn which do that.

Thanks for help

André R.

Wednesday 18 July 2007 5:04:47 am

The included search engine does not support OR search, and it is not very easy to implement as far as I have seen.
The simplest solution would be to look into the the alternative search engines. You currently have Lucene, and soon ( within a month ) Solr will be added as a alternative.

But most search engines will use AND search as default search anyway, just so you know.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Julien Plesniak

Wednesday 18 July 2007 5:26:52 am

hello,

thanks for your answer. I try to modify the search engine but it is very difficult. I try to install Lucene today, i hope that works :)

Thanks

Julien Plesniak

Wednesday 18 July 2007 9:07:15 am

I have a question before installing this plugin.

I want to do a search with or condition but like this:

I have a textbox which search on the attribute "Name" (if we write "word letter", i want to return all the results who contains "word" OR "letter")

BUT i want to have an another textbox with search on the attribute "Color" (with the same research)

An example that i want:

(Name = word OR name = letter) AND ( color="blue OR color="white")

It is possible with this plugin?

thanks

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 19 2025 03:37:30
Script start
Timing: Jan 19 2025 03:37:30
Module start 'layout'
Timing: Jan 19 2025 03:37:30
Module start 'content'
Timing: Jan 19 2025 03:37:31
Module end 'content'
Timing: Jan 19 2025 03:37:31
Script end

Main resources:

Total runtime0.8651 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.0391152.6094
Module start 'layout' 0.00570.0026 741.648439.4297
Module start 'content' 0.00830.8554 781.0781542.7422
Module end 'content' 0.86370.0013 1,323.820312.1875
Script end 0.8650  1,336.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3480160.0002
Check MTime0.00130.1496160.0001
Mysql Total
Database connection0.00120.141110.0012
Mysqli_queries0.810793.7180600.0135
Looping result0.00060.0656580.0000
Template Total0.835196.520.4176
Template load0.00210.243420.0011
Template processing0.833096.293820.4165
Template load and register function0.00030.032810.0003
states
state_id_array0.00150.175510.0015
state_identifier_array0.00150.176120.0008
Override
Cache load0.00200.2258270.0001
Sytem overhead
Fetch class attribute can translate value0.00070.081920.0004
Fetch class attribute name0.00180.207250.0004
XML
Image XML parsing0.00090.105720.0005
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00070.0812170.0000
String conversion0.00000.000940.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs