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 have

list1 columna columnb

list2 columnc columnd

list3 columne columnf

i want to create a search code that will search ONLY on those lists and ONLY on some columns of the lists. It will be an application page or webpart page.

any suggestion?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

You can follow below steps:

1) Create a new scope and include all the 3 lists by adding rules : Folder = http://siteurl/lists/list1,Folder = http://siteurl/lists/list2,Folder = http://siteurl/lists/list3

2) Do a full crawl

3) Create Managed properties for the columns you want to search.Crawl Again.

4) Now, if you want to search in columnb ( for which you created 'ColumnB' as Managed Property), Go to the search center and enter below keyword query :

ColumnB:"MyKeywordtoSearch" Scope:"YourScopeName" 
share|improve this answer
    
For more information on Keyword query,Check this out : extreme-sharepoint.com/2011/10/28/sharepoint-keywordquery –  Amit Kumawat Mar 28 '12 at 9:26

My suggestion would be to create one Managed property mapping all the crawled properties columna-columnf.
The your Keyword search would be:

site:urlOfList1 site:urlOfList2 site:urlOfList3 managedProp:searchterm

share|improve this answer

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.