Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Smart Search filter excluding more than one class View modes: 
User avatar
Member
Member
Rene 7 - 11/25/2012 9:54:19 PM
   
Smart Search filter excluding more than one class
Dear Kentico,
I am using the "Smart Search filter", and I would like to have an option where I can exclude two classes. I tried the Syntax below:

-classname;custom.type1,custom.type2;Excluding Type 1 and Type 2

It works for one, but not for two. I this possible?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/26/2012 3:07:43 AM
   
RE:Smart Search filter excluding more than one class
Dear,

Have you tried checking the Lucene.Net syntax and using the condition like (also, after classname should be colon, not semicolon):
-classname:custom.type1 OR -classname:custom.type2

Best regards,
Juraj Ondrus

User avatar
Member
Member
Rene 7 - 11/28/2012 10:36:44 PM
   
RE:Smart Search filter excluding more than one class
Hmmm... I am not sure we are talking of the same thing.
I mean the web part "Smart Search Filter" and the code goes into one of the attributes, Filter Properties > Values:
Colons, and the syntax did not work in there.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/29/2012 1:46:40 AM
   
RE:Smart Search filter excluding more than one class
Hi,

I got it - however, the exclusion is not made in the filter, this has to be done in the search results web part. Or, I am not getting what are you trying to do since right now it does not make any sense to use search syntax in filter values.

Best regards,
Juraj Ondrus