Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Smart search filter View modes: 
User avatar
Member
Member
Nicola - 12/9/2010 8:04:23 PM
   
Smart search filter
I have a ListBox field that allows multiple choices on one of my document types. I'm using a smart search filter in my search but this seems to do an exact match on the value which doesn't work with multiple values. Is it possible to configure the filter to do a LIKE or IN query instead?

Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/21/2010 12:43:09 AM
   
RE:Smart search filter
Hi,

We were solving this problem over the e-mails. I am posting here the answer just for other's reference.

The only way how to achieve this is to modify the filter web part and its code behind get the values added and truncate them field by field and set them individually.

For example:
<displayName>;<fieldName>:(A [A|B TO A|B] [A|C TO A|C]) will be separated to:

<fieldName>: A <fieldName>: [A|B TO A|B] <fieldName>: [A|C TO A|C]

Best regards,
Juraj Ondrus