Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Smart search filter-> Values- > use OR View modes: 
User avatar
Member
Member
Shmar - 2/11/2014 5:57:36 AM
   
Smart search filter-> Values- > use OR
Hi,

i have set up Smart search and all work fine.

I added a Smart Search filter using it as TextBox.

I added VALUES:
+_content
+DocumentCategories


So when I search for something throw the FILTER it must appear in both:
+_content AND +DocumentCategories

I would like this to be an OR:
+_content OR +DocumentCategories


How can I get this to work?


Thanks :)

User avatar
Kentico Support
Kentico Support
kentico_romank - 2/15/2014 3:10:14 AM
   
RE:Smart search filter-> Values- > use OR
Hi,

It is possible to achieve this scenario, however you have to apply hotfix number 75 to make this work.

If you have hotfix applied, all you have to do is to use the search condition in the following format Field1{0} OR Field2{0}, in your specific case that would be _content{0} OR DocumentCategories{0}, this will be rendered as "+( Field1:([TextBoxValue]) OR Field2:([TextBoxValue]) )".

Best Regards,
Roman Konicek

User avatar
Member
Member
Shmar - 2/16/2014 2:17:57 AM
   
RE:Smart search filter-> Values- > use OR
Great! Thank you for responding so quickly.

I'm sure many will use this new feature.

User avatar
Member
Member
Shmar - 2/25/2014 9:00:57 AM
   
RE:Smart search filter-> Values- > use OR
just wanted to update that when I try using it this way: _content{0} OR DocumentCategories{0}, it does NOT work.

But, if I try this: +(_content{0} OR DocumentCategories{0}) it WORLKS :)