views:

237

answers:

2

I'm building a custom search page and attempting to use an existing custom search scope. I'm having success using the SearchBoxEx with the AppQueryTerms = "ContentType:'my custom content type name'" but when i try using AppQueryTerms = "Scope:'My Custom Search Scope'" I get no errors, but also no proper results. I know my scope is populated using the advanced search so I must be using AppQuwryTerms wrong.

I've searched the net over and can't find the list of allowed AppQueryTerms filters. Is this Enum know to the stackerverse?

A: 

Does your custom scope appear in the web sites list of Scopes? http://intranet/[sitecollection]/_layouts/viewscopes.aspx?mode=site

Does the scope appear in a Display Group?

Nat
+1  A: 

The problem is your scope name has spaces.

This worked for me:

AppQueryTerms="Scope:"My Scope""

HelloSharePoint

HelloSharePoint