fetch content against multiple keywords

Author Message

Sylvain Gogel

Friday 04 December 2009 1:29:35 pm

How can i fetch 10 content nodes against multiple keywords (with an OR)?

The fetch content keyword operator does not looks like supporting this feature

<span class="line">fetch( 'content',  'keyword',</span>
<span class="line"> hash( 'alphabet',            alphabet,</span>
<span class="line">     [ 'strict_matching',     strict_matching,    ]</span>
<span class="line">     [ 'classid',             classid,            ]</span>
<span class="line">     [ 'offset',              offset,             ]</span>
<span class="line">     [ 'limit',               limit,              ]</span>
<span class="line">     [ 'owner',               owner,              ]</span>
<span class="line">     [ 'parent_node_id',      parent_node_id,     ]</span>
<span class="line">     [ 'include_duplicates',  include_duplicates, ]</span>
<span class="line">     [ 'sort_by',             sort_by             ] ) )</span>

thanks

--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony

Bertrand Dunogier

Saturday 05 December 2009 4:19:44 am

Simple answer: use eZ find. You could also perfectly do it with a custom fetch function, I think, but the result would be better, to the cost of less performances, using eZ find.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Sylvain Gogel

Tuesday 08 December 2009 1:31:48 pm

Good hint, i switch my original design to use moreLikeThis fetch, handy fast and kewl ^^

Anyway Tagcloud are lame ^^

--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony

yunxia cai

Thursday 10 December 2009 12:33:59 am

I want to ask a question .Do you know ez Technical Manual?

I want to download.

Thanks!

Gaetano Giunta

Thursday 10 December 2009 12:57:07 am

@Yunxia: http://ez.no/doc - you can download pdf versions on that page

Principal Consultant International Business
Member of the Community Project Board

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.