0

I'm trying to use the QueryManager to get some results, but I don't know what the variable name for the query in the UserQuery property of the QueryManager should be.

This works:

userQuery = String.Format("scope:\"Scope Name\"");

However, this doesn't pass on the actual query.

This doesn't work ('default' is the keyword searched on):

userQuery = "default scope:\"Scope Name\"";

(No results)

This also doesn't work:

userQuery = "(default) AND (Scope:Scope Name)";

(query malformed)

Does anyone know how to pass the actual query word to the UserQuery property with an extra parameter (like scope in this case)?

  • try userQuery = "\"default\" Scope:Scope Name"; – Gintas K Oct 31 '13 at 16:03
  • @GintasK Unfortunately that doesn't work. It says it doesn't recognize the scope. If I change it to userQuery = "\"default\" Scope:\"Experis Content\""; it does, but it doesn't fetch results for the 'default' query. – aage Nov 1 '13 at 9:10
0

Apparently this works:

userQuery = "\"default\" Scope:\"Scope Name\"";

Hope this helps anyone...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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