Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > populating Smart search filter with paths? View modes: 
User avatar
Member
Member
eagleag - 6/22/2010 9:48:41 AM
   
populating Smart search filter with paths?
hi,
please see attached image for question.

User image

thanks

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/2/2010 7:36:56 AM
   
RE:populating Smart search filter with paths?
Hi,


you could create a custom web part (Developing web parts documentation) with two dropdownlists and ensure the filling functionality in the code behind. If user changes the index of one dropdownlist it can load the new values for the second dropdownlist. You can select the nodes and their path/names by our API.
Selecting nodes example
API Reference


Please see the code of our Smart search filter web part (<web site folder>\CMSWebParts\SmartSearch\SearchFilter.ascx) to know how to make the filter work.


Best regards,
Helena Grulichova

User avatar
Certified Developer 9
Certified Developer 9
piyushkothari3-gmail - 8/30/2013 12:17:50 AM
   
RE:populating Smart search filter with paths?
I want to do something similar, filter my search result to a path under tree.
please advice

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/30/2013 12:34:35 AM
   
RE:populating Smart search filter with paths?
Hello,

We have discussed this in a ticket as well.

In current Lucene.NET engine this is not possible in an easy way.

You can develop a fully custom filter web part that will dynamically change the index used by the search results web part - each index will be indexing different path.

Or, easier solution is to add a ield to the document type that will indicate the location and then you can easily use the existing filter and filter out the results based on this field value. It is the same as using path value in the filter condition but instead you will use some string or integer value.

Best regards,
Juraj Ondrus