Search code examples
sharepointmossweb-parts

What are the Valid values of the searchboxex AppQueryTerms enum?


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?


Solution

  • The problem is your scope name has spaces.

    This worked for me:

    AppQueryTerms="Scope:"My Scope""