Question

DVGR on Mon, 24 Sep 2012 09:52:30


Hi,

I have query on Search vs Advanced Search webpart

If we search the data using basic search box  where list column-"Archived" should not get the results.

If we search using Advanced webpart where listcolumn ="Archived" . it should get the list items from list.

Can we able to manipulate like above?


DVGR, SharePoint Developer




Sponsored



Replies

CoreyRoth [MVP] on Mon, 24 Sep 2012 13:51:40


You should be able to but you need to create a managed property to represent that list column.  You do this in the Search Service application under metadata properties.

Daniel Yang on Wed, 26 Sep 2012 09:41:54


Hi ,

You can add a custom managed property(mapping to list Archive column) to the Advanced Search Box webpart per this article.

And you can also create a custom search scope and set the Property Query in the scope rule to exclude the list items which column=Archived, and add this custom scope in a Search Box web part per this article.

Thanks

DVGR on Fri, 01 Mar 2013 11:02:22


Thanks Daniel.

But What i have done is I created 2 scopes one for Standard Search . Scope Name is BasicNotIncludeArchive.

I ceated rule for this lstColumnArchived metadata propery ="Archived"  exclude from search results.

I have created another scope advIncludeArchive. I dint create any rule for this.I ahve added this scope to advanced scope using following url  /_layouts/listdisplaygroups.aspx.

I am not able to get the Archived documents resukts from advanced search.

Could you please suggest, what would be wrong. Is there any way to display results from Advanced search results not in Basic search.

Alex Brassington on Fri, 01 Mar 2013 11:33:54


There are two options here: (1) Create a dedicated search page that only targets a particular scope. (2) use a scope drop down to switch between scopes.

It sounds like you are doing 1, creating a dedicated advanced Search Page that should send you to a results page with the Scope set automatically. There is a property in the advanced search web part that allows you to specify the scope.


A more advanced option would be to create a dedicated Archive only search results page, which you can then tweak to be more appropriate. That can be modified by setting a scope on the results web part, which achieves the same result. Some more information here: http://www.codedigest.com/Articles/Sharepoint/191_Search_Scopes__Contextual_Search_Scopes.aspx