Search Fetching

Author Message

lorenzo messori

Monday 16 May 2005 8:21:33 am

Hi all, i have a problem with "class_attribute_filter". I tried to use it to limit searching only to article document, but it didn't work...
Somebody could help me?

This is my fetching:

{let search=false()}
{section show=$use_template_search}
    {set page_limit=5}
    {set search=fetch(content,search,
                      hash(text,$search_text,
                           section_id,$search_section_id,
                           subtree_array,$search_subtree_array,
						   class_filter_type,exclude,
                           class_filter_array,array(3,4),
                           sort_by,array('modified',false()),
                           offset,$view_parameters.offset,
                           limit,$page_limit))}
    {set search_result=$search['SearchResult']}
    {set search_count=$search['SearchCount']}
    {set stop_word_array=$search['StopWordArray']}
    {set search_data=$search}
{/section}

Thx all

Marko Žmak

Monday 16 May 2005 3:49:16 pm

Why don't you try something like this:

class_filter_type, 'include', class_filter_array, array('article'),

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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