eZ Community » Forums » Setup & design » Searching only within a class attribute
expandshrink

Searching only within a class attribute

Searching only within a class attribute

Monday 22 April 2013 12:21:49 pm - 1 reply

I'm trying to do a specialised search allowing people to select articles by searching within the "theme" attribute, so something like:

{def $search = fetch( 'ezfind', 'search', hash( 'query', $search_text,
                                                            'class_id', array( 'article' ),
                                                            'class_attribute_id', array( 'theme' ) ) )
                 $search_result   = $search['SearchResult']
                 $search_count    = $search['SearchCount']
                 $search_extras   = $search['SearchExtras']
                 $stop_word_array = $search['StopWordArray']
                 $search_data     = $search
            }

However, the results I'm getting back from this are just strange. Is there anything I'm obviously doing wrong?

Monday 06 May 2013 11:15:34 am

The reply has been removed because of violation of forum rules.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from