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?
|