Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Smart serch filter used, combined with custom tables View modes: 
User avatar
Certified Developer 8
Certified Developer 8
liquidmagic - 5/10/2012 10:59:52 AM
   
Smart serch filter used, combined with custom tables
Hello,

I am trying to create a smart search that uses a smart search filter. The search filter is populated by the data of a custom table. I am trying to accomplish almost the same result as the following article but with no luck.

http://devnet.kentico.com/Knowledge-Base/Search/How-to-set-up-a-Smart-search-filter-for-document-t.aspx

My custom table has the following fields.
itemid
categoryliteral

So, I create a query (CMS.Root.SmartSearchFilter) for this custom table. The query is the following:
SELECT 'itemid', itemid, CategoryLiteral FROM RecipeCategories ORDER BY CategoryLiteral

The first item of the query should be the searchable item on the custom table or the documents I want to search?

Then I add the 3 web parts and the parameters for the filter are as follows:
query name: CMS.Root.SmartSearchFilter
where: categories IN (SELECT itemId FROM RecipeCategories)
categories is the int field on the document type table that holds the index of the custom table.
Filter clause: Must

However, when I search the filter is not used at all.

Any ideas why?

Dimitris

User avatar
Member
Member
kentico_michal - 5/11/2012 8:29:55 AM
   
RE:Smart serch filter used, combined with custom tables
Hi,

Could you please make sure that you have set the the Search web part ID of the Smart search filter to ID of Smart search dialog web part.

Best regards,
Michal Legen

User avatar
Certified Developer 8
Certified Developer 8
liquidmagic - 5/14/2012 3:51:13 AM
   
RE:Smart serch filter used, combined with custom tables
Hello,

it is there but it doesn't work. Any other ideas?

Dimitris

User avatar
Member
Member
kentico_michal - 5/16/2012 8:21:53 AM
   
RE:Smart serch filter used, combined with custom tables
Hi,

What do you mean that it does not work? Do you mean that the filter is used and no results are displayed or the filter is not taken into account when you search for documents?

Best regards,
Michal Legen

User avatar
Certified Developer 8
Certified Developer 8
liquidmagic - 5/16/2012 8:29:34 AM
   
RE:Smart serch filter used, combined with custom tables
Hello,

what I mean is that what I have selected on the search filter is not used.
For example, I search for a word "football" that has assigned the category X. On the drop down I select category Y (on the smart search filter). Normally, this wouldn't give results.
If I select category X from the smart search filter then I should get results.

Does this make sense?

Dimitris

User avatar
Member
Member
kentico_michal - 5/17/2012 5:27:20 AM
   
RE:Smart serch filter used, combined with custom tables
Hi,

If the filter is not applied and all results are still retrieved, it seems that you might not have connected it to the search dialog web part as mentioned in the knowledge base article: How to set up a Smart search filter for document.

Best regards,
Michal Legen