Forums / Developer / Searching with AnyWordSearchText

Searching with AnyWordSearchText

Author Message

Jean-Luc Nguyen

Thursday 15 July 2010 3:20:24 am

Hello,

I can see that on default advancedsearch.tpl, AnyWordSearchText field is hidden, and has never been implemented. How can I use this feature ?

Thanks !

http://www.acidre.com

Nicolas Pastorino

Thursday 15 July 2010 3:58:21 am

Hi Jean-Luc,

Not having dug into the ezsearch code, it sounds like an empty search feature to me, where filters only (class, subtree) restrict the result set. Anyways, you should probably consider eZ Find if not already the case, where empty searches work very fine and are way better performing than the default search plug-in.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Jean-Luc Nguyen

Thursday 15 July 2010 4:07:36 am

Thanks Nicolas.

I actually tried to install ezfind on my local, but the re-indexing search script is too long... Do you confirm me that using AnyWordSearchText in ezfind extension does work ? Because I don't find it on php code, and it is still commented on ezfind advanced search.tpl.

http://www.acidre.com

Nicolas Pastorino

Thursday 15 July 2010 4:20:11 am

Hi again Jean-Luc,

Well, i was not stating that AnyWordSearchText is actually working with eZ Find, given that i do not know what the initial intent was for this parameter. Assuming that this allows for an empty search, i simply suggested to go for eZ Find which supports the empty search feature in a more efficient fashion.

As to your issue with eZ Find, i recommend to read this tutorial, giving a tip to solve your specific issue. More generally, the series of three tutorials about Advanced Development with eZ Find is a must-read :

  1. http://share.ez.no/tutorials/ez-publish/advanced-development-with-ez-find-part-1-datatypes-in-solr-and-ez-find
  2. http://share.ez.no/tutorials/ez-publish/advanced-development-with-ez-find-part-2-indexing-additional-fields-in-solr
  3. http://share.ez.no/tutorials/ez-publish/advanced-development-with-ez-find-part-3-leveraging-the-solr-syntax

But could you let us know what you were trying to achieve when you stumbled upon the AnyWordSearchText parameter ?

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Jean-Luc Nguyen

Thursday 15 July 2010 4:41:46 am

Hi Nicolas,

Actually I do know those tutorials on eZ Find. Using eZ Find or not is not my problem. Let me explain by an example my need to use this AnyWordSearchText input :

  • If I search on "fetch content search" words, I need to return N results that match 1 of those 3 words.
  • If I search on "fetch content search ezfind" words, it then should return more than N results.

I hope this is clear, thanks !

http://www.acidre.com

Nicolas Pastorino

Thursday 15 July 2010 12:12:04 pm

Hi Jean-Luc,

From your example, it seems like you simply would like that the default search operator is OR, instead of AND. This is so by default with eZ Find, but unfortunately not with eZ's default search engine. In short, when using eZ Find you won't even need to bother about AnyWordSearchText for achieving the described example.

Hope this helped :)
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Jean-Luc Nguyen

Thursday 15 July 2010 1:05:20 pm

This is exactly the info I needed. Thanks a lot Nicolas !

http://www.acidre.com

eZ debug

Timing: Jan 17 2025 23:49:03
Script start
Timing: Jan 17 2025 23:49:03
Module start 'content'
Timing: Jan 17 2025 23:49:04
Module end 'content'
Timing: Jan 17 2025 23:49:04
Script end

Main resources:

Total runtime1.0532 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.7188180.8281
Module start 'content' 0.00600.9234 768.5469601.9766
Module end 'content' 0.92940.1237 1,370.5234341.6797
Script end 1.0531  1,712.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3615210.0002
Check MTime0.00140.1292210.0001
Mysql Total
Database connection0.00130.122610.0013
Mysqli_queries0.963891.51032070.0047
Looping result0.00220.20772050.0000
Template Total1.029597.820.5148
Template load0.00230.220920.0012
Template processing1.027297.534920.5136
Template load and register function0.00010.011610.0001
states
state_id_array0.00030.031610.0003
state_identifier_array0.00070.071120.0004
Override
Cache load0.00200.1889450.0000
Sytem overhead
Fetch class attribute can translate value0.00150.140530.0005
Fetch class attribute name0.00290.278690.0003
XML
Image XML parsing0.00160.149530.0005
class_abstraction
Instantiating content class attribute0.00000.0043140.0000
General
dbfile0.00260.2478330.0001
String conversion0.00000.000730.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ol.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ol.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 10

Time used to render debug report: 0.0002 secs