Fabricio Guerrero
|
Monday 23 January 2006 10:08:30 am
Hi all, Me here again.. my 3rd post today... easy to guess what i did all day... We're coming down to final phases in developing a new client web site and now I've come accross customising the Adv. Search. The client needs it to be Searchable on Attributes such as Categories, SubCategories, Type, Industry and so on... For which I've managed to do by creating a fetch on the 'content'`, 'tree functions.... but the client also wants the search to be further filtered on Text... Lets say a User wants a Article which contains the word "china", belonging to the Community Section, Industry Sector and so on... Is this possible some how?? to search text without using the fetch 'content', 'search'??? Up to now I see that the:
* 'content', 'search' function doesn't let you filter attributes * 'content', 'tree' function doesn't let you search text.... my problem(as usual) is that i need a mix of both... is there a solution somehow.. or a patch/extension that lets this happen?? Here's the fetch as an alternative where i just filter all the Attributes which of course is not a good solution performance wise:
{let
search_briefings=fetch( 'content', 'tree', hash( 'parent_node_id', ezhttp('SearchIssueNumber','get'),
class_filter_type, "include", class_filter_array, array(25),
attribute_filter, array( 'and', array( 'article_issue/title', 'like', '*' ),
array( 'article_issue/short_title', 'like', '*' ),
array( 'article_issue/short_intro', 'like', '*' ),
array( 'article_issue/intro', 'like', '*' ),
array( 'article_issue/body', 'like', '*' ), array( 'article_issue/category', 'like', ezhttp('SearchContentCategory','get') ),
array( 'article_issue/sub_category', 'like', ezhttp('SearchContentSubCategory','get') ),
array( 'article_issue/story_type', 'like', ezhttp('SearchContentStoryType','get') ),
array( 'article_issue/region', 'like', ezhttp('SearchContentRegion','get') ),
array( 'article_issue/industry_sector', 'like', ezhttp('SearchContentIndustry','get') )),
'sort_by', array( 'published', false() ),
'offset', $view_parameters.offset,
'limit', $numberOfObjects
))
}
Thanks, Fabricio
http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...
|