Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SharePoint 2010 Search Query Webservice - TimeOuts

$
0
0

I'm using the Query Web service against a SharePoint Server 2010 environment from a .net web application outside of the context of a SharePoint site. 

I am using the QueryEx method with Keyword syntax.  2 Fields are being queried on - 1 date/time and 1 single line of text.  I'm returning a fair number of columns in the result:

 <QueryPacket xmlns="urn:Microsoft.Search.Query" Revision="1000"><Query domain="QDomain"><SupportedFormats><Format>urn:Microsoft.Search.Response.Document.Document</Format></SupportedFormats><Context><QueryText language="en-US" type="STRING"> SCOPE:"Imaging Libraries" owsScanUser:e2464 AND owsScanDate:01/30/2012</QueryText></Context><Properties><Property name="owsCustomerID" /><Property name="owsID" /><Property name="owsFunction" /><Property name="owsScanDate" /><Property name="owsIndexDate" /><Property name="owsDocumentDate" /><Property name="owsDocumentStatus" /><Property name="owsDocumentDescription" /><Property name="owsDocumentName" /><Property name="owsTransaction" /><Property name="owsSuffixNum" /><Property name="owsFolioNum" /><Property name="owsLoanAmount" /><Property name="owsValid" /><Property name="owsReasonForException" /><Property name="owsIndexUser" /><Property name="owsScanUser" /><Property name="owsProductDescription" /><Property name="DocId" /><Property name="owsBatchName" /><Property name="owsCloseDate" /><Property name="owsvwAccount" /><Property name="owsvwMembership" /><Property name="owsvwBranch" /><Property name="owsEmployee" /><Property name="owsQAComplete" /><Property name="owsQaDate" /><Property name="owsQaUser" /><Property name="owsQAStatus" /><Property name="owsQAIssueOwner" /><Property name="owsQAIssueResolved" /><Property name="owsQALevel" /><Property name="owsQAComment" /><Property name="owsClassifier" /><Property name="owsReasonForQAException" /><Property name="owsDocComments" /><Property name="SharepointContentType" /><Property name="owsCustomerNum" /><Property name="owsProduct" /><Property name="owsSub" /><Property name="Rank" /><Property name="Title" /><Property name="Size" /><Property name="Path" /><Property name="SiteName" /><Property name="Description" /><Property name="Write" /></Properties><Range><StartAt>1</StartAt><Count>5000</Count></Range></Query></QueryPacket>

The scope being specified in the query contains approx. 1 million document library items in it.  When performing the search, I am intermittently receiving TimeOut errors in the log.  All documentation I've seen relating to this refer to a 10 second hard-coded limit.

I've tried overriding the timeout property of the QueryService class to 20 seconds all the way up to 60 seconds, but I'm still getting the error.  In fact, it doesn't appear to be waiting the 20 to 60 seconds at all, still appears to be 10 seconds.  Sometimes when I run the query, the results are returned almost immediately.

 (Also, when using the search webservice, does it have to comply with the resource throttling limits as defined for the web app?)

Here is what is being logged ...

Error 0x80040e31 on SQL query: /* {B7AB5D62-2B57-4AE5-B788-732BB0B0A286} */  SET NOCOUNT ON;DECLARE @joinData VARBINARY(MAX) ; SET @joinData = ? ;  SELECT A.DuplicateHashes, A.HasPluggableSecurityTrimming, A.DocId, A.Sdid FROM dbo.fn_Search_GetJoinData2(@joinData) AS T INNER HASH JOIN dbo.fn_Search_GetLongPropertyValues2(416,@joinData) AS P416 ON ( P416.DocId = T.DocId ) INNER LOOP JOIN MssDocSdids AS A ON T.DocId = A.DocId WHERE ( P416.llVal < ? AND P416.llVal >= ? ) ORDER BY T.Value DESC OPTION (MAXDOP 1) b7ab5d62-2b57-4ae5-b788-732bb0b0a286

w3wp.exe (0x10DC)                        0x1294 SharePoint Server Search       Exceptions                    1hjo Medium   Exception thrown: 0x80040e31 (d:\office\source\search\native\ytrip\tripoli\icommand\executesqlpart.cxx:667 ip 0x000007FEDDD7107D)   b7ab5d62-2b57-4ae5-b788-732bb0b0a286

w3wp.exe (0x10DC)                        0x1294 SharePoint Server Search       Query Processor               e2tq High        Source: Microsoft SQL Server Native Client 10.0   Description: Query timeout expired  [traceerror.cxx:44]  d:\office\source\search\native\ytrip\tripoli\icommand\traceerror.cxx b7ab5d62-2b57-4ae5-b788-732bb0b0a286

w3wp.exe (0x10DC)                        0x1294 SharePoint Server Search       Query Processor               e2tr High     Dumping error record [0]:   Source: Microsoft SQL Server Native Client 10.0   HRESULT: 0x80040e31   Code: 0   Description: Query timeout expired  [traceerror.cxx:94]  d:\office\source\search\native\ytrip\tripoli\icommand\traceerror.cxx b7ab5d62-2b57-4ae5-b788-732bb0b0a286

w3wp.exe (0x10DC)                        0x1294 SharePoint Server Search       Query Processor               e2o1 High     In CRootQuerySpec::Execute - caught exception: 0x80040e31, translated to: 0x80040e31 b7ab5d62-2b57-4ae5-b788-732bb0b0a286
01/30/2012 12:12:53.70  w3wp.exe (0x10DC)                        0x1294 SharePoint Server Search       Administration                0000 High     Log Query: More Information: Execution stopped because a resource limit was reached. No results were returned. b7ab5d62-2b57-4ae5-b788-732bb0b0a286

w3wp.exe (0x10DC)                        0x1294 SharePoint Server Search       Query                         dk68 High     SearchServiceApplication::Execute--Exception: System.ServiceProcess.TimeoutException: System error.     at Microsoft.Office.Server.Search.Query.KeywordQueryInternal.Execute()     at Microsoft.Office.Server.Search.Query.QueryInternal.Execute(QueryProperties properties)     at Microsoft.Office.Server.Search.Administration.SearchServiceApplication.Execute(QueryProperties properties) b7ab5d62-2b57-4ae5-b788-732bb0b0a286 


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>