Yes Damon ! You are correct ! I got my answer 

Thanks a lot

Abhishek Srivastav
Systems Engineer
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty.   IT Services
                        Business Solutions
                        Outsourcing
____________________________________________



From:
Damon Feldman <[email protected]>
To:
General MarkLogic Developer Discussion <[email protected]>
Date:
06/10/2011 06:14 PM
Subject:
Re: [MarkLogic Dev General] Stack Overflow with large query
Sent by:
[email protected]



Abhishek,
 
Are you programmatically constructing the query? If so you may want to 
build up a large cts:and-query() with cts:or-query() constructors in it, 
rather than a large string that is then parsed by search:search().
 
You can pass this query in using <additional-query> to search:search(), or 
you can use search:resolve() to execute. If you have other 
non-programmatic queries entered by the user directly, you can make that 
into a sub-query via search:parse().
 
Yours,
Damon
 
From: [email protected] [
mailto:[email protected]] On Behalf Of Abhishek53 S
Sent: Friday, June 10, 2011 8:18 AM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Stack Overflow with large query
 

Hi All 

I have a big query text (consist of 1000 AND and OR with custom 
constraint) to parse using search:parse function. This is working fine but 
when the search is execute using this large query it is getting stack 
overflow exception. Can some one let me know the solution to overcome this 
exception? 
(I can not use registered query as the query is dynamic) 

Query Sample := "custom-constraint:A AND custom-constraint:B.......so on " 

search:parse(Query,Options) 

search:resolve(Query,Option,1 , 10) -- > Stack Overflow Exception 

Thanks in advance !
Abhishek Srivastav
Systems Engineer
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to