Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Filtering Smart Search results by multiple fields View modes: 
User avatar
Certified Developer 11
Certified Developer 11
jason-datausa - 1/25/2011 5:43:47 PM
   
Filtering Smart Search results by multiple fields
Hi,

I'm trying to filter the Smart Search Results control by multiple fields. I've been able to to filter it by one field by placing this within the Search Condition:

+StateID:(int)24

But, I'm trying to filter with multiple. I've tried:

(+StateID:(int)24 OR +StateID:(int)12)
StateID:(+(int)80 +(int)84)

Ultimately, I'd like to do something like this:

(StateID:(+(int)80 OR +(int)84) AND CategoryId:(+(int)1))

I'm struggling with the right syntax. I've checked out:
http://lucene.apache.org/java/2_1_0/queryparsersyntax.html#AND

But, I haven't had any luck. Has anyone had any experience with this stuff???

Thanks,
J




User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/7/2011 2:21:39 AM
   
RE:Filtering Smart Search results by multiple fields
Hi,

Could you please try syntax like this:

+(StateID:(int)84 StateID:(int)80) +categoryID:(int)1

Best regards,
Juraj Ondrus