Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I need to create custom search web part with 3 filters. First filter will have all list names in a dropdown box. Second filter will have particular list column values(only 2 values like active and inactive) in a drop down box. Third filter will have some numeric values that is list column id in text box. Now on clicking search button i need to send query string to search result page with all these values..is this possible? Also i need to know wheather my search page can have multiple display groups for these drop down and any possiblity to add text box filter to existing search options.

share|improve this question
add comment

2 Answers 2

I think you should go for CAML query or out-of-box filters instead of search to find items in specific lists.

If you want to use search anyhow, You can create a scope for each list and create managed property for each column to search for. Then, you can see below how to form keyword query with the properties and scopes :

http://extreme-sharepoint.com/2011/10/28/sharepoint-keywordquery/

share|improve this answer
add comment

Perhaps not an exact answer but an excellent blog post which will point you in the right direction: http://consultingblogs.emc.com/mattlally/archive/2011/12/29/sharepoint-2010-custom-advanced-search-for-power-users.aspx. At least this should help when it comes to building up the search query.

As for your last questions they will have to remain unanswered by me.

How would the text box be used? To filter the result set? Or, in essence, changing the query string? That should be possible of course.

/Björn

share|improve this answer
    
I referred that link. It was useful link but in his case he had tried for same content type. Rather i want to search all content types in my site.. –  Sanker Mar 2 '12 at 7:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.