Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Smart Search Filters View modes: 
User avatar
Member
Member
Aashish khandelwal - 3/9/2012 7:19:02 AM
   
Smart Search Filters
I have added Location (text) field to Article documents. Now i want to search Articles using Smart Search Webpart on the basis of entered keyword and location.

I guess Smart Search filter should be used. Please detailed me how to configure it so as to get desired search functionality.

How can i do this?

Regards
Aashish Khandelwal
http://technoscatter.blogspot.com

User avatar
Member
Member
kentico_michal - 3/12/2012 1:43:55 AM
   
RE:Smart Search Filters
Hello,

If you want to use the smart search module, you can use the Smart search filter web part to allow users to limit the range of objects that will be searched: Smart search filter

Another way could be creating a custom filter just as it is described in the following blog: Custom filter development with Kentico CMS . Unlike the smart search filter, this filter would work with standard listing web parts.

Best regards,
Michal Legen

User avatar
Member
Member
Aashish khandelwal - 3/12/2012 3:01:37 AM
   
RE:Smart Search Filters
I have tried the Smart search filter.

Values :
+Location;India;India
+Location;UK;UK
+Location;USA;USA


I have added Location field to Article Documents.

Search is not working. Please help!!!

User avatar
Member
Member
Aashish khandelwal - 3/12/2012 3:06:47 AM
   
RE:Smart Search Filters
Smart Search filter properties are being configured as shown below :

Webpart properties (Smart search filter)

Alias path: /search
Zone ID: zoneMain


Default


Web part control ID: SearchFilter

Web part title:

Disable view state: False

Disable macros: False


Visibility


Visible: True

Hide on subpages: False

Show for document types:

Display to roles:


Filter properties


Search webpart ID: SearchResults111

Filter mode: dropdownlist

Filter layout: horizontal

Filter auto postback: True

Values: Location;India;India
Location;UK;UK
Location;USA;USA

Query name:

Query WHERE condition:

Query ORDER BY clause:

Filter clause: +

Default selected index:

Filter is conditional: True


Partial caching (hidden)



Web part container


Web part container:

Container title:

Container CSS class:

Container custom content:

Hide container on subpages: False


HTML Envelope


Content before:

Content after:


AJAX


Use update panel: False


Time zones


Time zone: inherit

Custom time zone:


Partial caching



User avatar
Member
Member
kentico_michal - 3/12/2012 3:34:42 AM
   
RE:Smart Search Filters
Hello,

Please note that in order for the filter to work correctly, the data fields used in the option definitions must be set as Searchable in the field configuration of the given object type. So, please make sure that the Location field is marked as Searchable.

Moreover, please try to rebuild the search index.

Best regards,
Michal Legen

User avatar
Member
Member
Aashish khandelwal - 3/12/2012 4:11:05 AM
   
RE:Smart Search Filters
Already marked Location field Searchable.

Rebuild the index many a times.

The generated UI is :
<select class="DropDownField" id="p_lt_zoneMain_SearchFilter_drpFilter" onchange="javascript:setTimeout('__doPostBack(\'p$lt$zoneMain$SearchFilter$drpFilter\',\'\')', 0)" name="p$lt$zoneMain$SearchFilter$drpFilter">
<option value="Location:India">India</option>
<option value="Location:UK" selected="selected">UK</option>
<option value="Location:USA">USA</option>

</select>

User avatar
Member
Member
Aashish khandelwal - 3/12/2012 4:11:49 AM
   
RE:Smart Search Filters
Suggest if i have missed some property or wrongly used some properties.

User avatar
Member
Member
kentico_michal - 3/12/2012 6:22:02 AM
   
RE:Smart Search Filters
Hello,

It seems that you specified all web part's properties correctly. Can you search without using the smart search filter? If not, please check the settings of the smart index, e.g. if it is assigned to the site and culture.


Best regards,
Michal Legen

User avatar
Member
Member
Aashish khandelwal - 3/12/2012 7:20:58 AM
   
RE:Smart Search Filters
Thanks Michal. It is working now.

Can i use multiple smart search filters at a time?

Regards
Aashish Khandelwal

User avatar
Member
Member
kentico_michal - 3/12/2012 7:42:40 AM
   
RE:Smart Search Filters
Hello,

Sure, you can specify the Search webpart ID property of multiple Smart search filter web parts to a single search web part.

Best regards,
Michal Legen