Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > How to set the search condition programmatically for Smart Search View modes: 
User avatar
Member
Member
gtekelis-yahoo - 12/11/2010 11:38:31 AM
   
How to set the search condition programmatically for Smart Search
Hello!
I want to use Smart search in my application. I have created an index for the News document type. I use the Search dialog with results web part and everything works fine.

Now, what I want to do is to be able to define the field for the search.
I have added 1 dropdown list with values "Title" and "Content". For example, when the user selects "Title", smart search should only search in the title fields of the News documents.

How can I achieve this? Should I set up the Search condition dynamically in the code behind? and if yes, how?

User avatar
Certified Developer 8
Certified Developer 8
liquidmagic - 12/13/2010 10:23:13 AM
   
RE:How to set the search condition programmatically for Smart Search
Nevermind, got it!

Thanks anyway!