Thursday, March 1, 2007

Your search cannot be completed because of a service error. Try your search again or contact your administrator for more information.

I got this error while searching a 'Yes/No' field in correctly.
  1. I setup a managed property "ExtraInfo" in the SSP on a 'Yes/No' crawled property.
  2. After a full crawl, I tried to search the managed property with a string "ExtraInfo:Yes"

got the error: Your search cannot be completed because of a service error. Try your search again or contact your administrator for more information.

Fix:

  1. Search "ExtraInfo:true" instead of "ExtraInfo:Yes"
    Sharepoint crawler indexes the value with the internal boolean values "true/false".
  2. If you are searching for a vaue using the custom code in SPQuery, use '1' and '0' instead of 'yes/no' or 'true/false'.
    SPQuery goes with the crawled content with '0' and '1'.

No comments:

Post a Comment