Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
LL_ApplyQuery - An error has occurred when connecting to search engine
Chris_Hall_(linkhanduser1_-_(deleted))
I am having errors like this returned by LL_ApplyQuery() for different search strings. If I try the same search strings in Livelink advanced search, it returns results. What could be causing this?
Find more posts tagged with
Comments
Matthew_McBride
Message from Matthew McBride via eLinkHi Chris,What is the error that is returned?Do you have an example of a string that causes this? Does it have 8 bit characters in it?Searching from the Advanced Search pages does go through a different path than calling LAPI search directly.Thanks,MattOn 14-Dec-06, at 12:53 PM, eLink Discussion: LAPI Discussion wrote:> LL_ApplyQuery - An error has occurred when connecting to search engine> Posted by Hall, Chris on 12/14/2006 12:49 PM>> I am having errors like this returned by LL_ApplyQuery() for > different search strings. If I try the same search strings in > Livelink advanced search, it returns results. What could be > causing this?>> [To reply to this thread, use your normal E-mail reply function.]>> ============================================================>> Discussion: LAPI Discussion>
https://knowledge.opentext.com/knowledge/llisapi.dll/open/765428>>
; Livelink Server:>
https://knowledge.opentext.com/knowledge/llisapi.dll>>
; To Unsubscribe from this Discussion, send an e-mail to > unsubscribe.lapi@elinkkc.opentext.com.>>
Chris_Hall_(linkhanduser1_-_(deleted))
Hi Matt,That is the error message: "An error has occurred when connecting to the search engine".I call LL_ApplyQuery( ), it returns lstatus <> LL_OK. LL_SessionStatusError(lstatus) returns the aforementioned error message.Example of query strings that fail:( "OTSubType" : 0 ) AND ( "Attr_23218_2" : "Department of Health" )( "OTCreateDate" : >= "20061214" )( "OTName" : "test" ) AND ( "OTSubType" : 0 )Example of query strings that work:( "OTSubType" : 0 ) AND ( "Attr_23218_2" : "Department of Agriculture" )( "OTSubType" : 0 ) AND ( "Attr_23218_2" : "Department of Health" ) AND ( "Attr_23219_2" : "HR Division" )( "OTName" : "billings" )What would be a good way to debug LL_ApplyQuery?
Matthew_McBride
Message from Matthew McBride via eLinkHi Chris,Well we can start with getting the thread and search logs and look over those.Setting these values in the opentext.ini and restarting the server would help:[options]wantDebugSearch=TRUEwantSearchLogs=TRUEIn the install\logs directory, you will see files like search_*.log. This will record the query sent to the engine and any results.What version of LL?Does the request fail right away?If you do not want to post logs here, you can send them to my directly or pass them through a customer support contact.Thanks,MattOn 15-Dec-06, at 5:58 AM, eLink Discussion: LAPI Discussion wrote:> Hi Matt,> Posted by Hall, Chris on 12/15/2006 05:56 AM>> Hi Matt,>> That is the error message: "An error has occurred when connecting > to the search engine".>> I call LL_ApplyQuery( ), it returns lstatus <> LL_OK. > LL_SessionStatusError(lstatus) returns the aforementioned error > message.>> Example of query strings that fail:> ( "OTSubType" : 0 ) AND ( "Attr_23218_2" : "Department of Health" )> ( "OTCreateDate" : >= "20061214" )> ( "OTName" : "test" ) AND ( "OTSubType" : 0 )>> Example of query strings that work:> ( "OTSubType" : 0 ) AND ( "Attr_23218_2" : "Department of > Agriculture" )> ( "OTSubType" : 0 ) AND ( "Attr_23218_2" : "Department of Health" ) > AND ( "Attr_23219_2" : "HR Division" )> ( "OTName" : "billings" )>> What would be a good way to debug LL_ApplyQuery?>> [To reply to this thread, use your normal E-mail reply function.]>> ============================================================>> Topic: LL_ApplyQuery - An error has occurred when connecting > to search engine>
https://knowledge.opentext.com/knowledge/llisapi.dll/open/9677225>>
; Discussion: LAPI Discussion>
https://knowledge.opentext.com/knowledge/llisapi.dll/open/765428>>
; Livelink Server:>
https://knowledge.opentext.com/knowledge/llisapi.dll>>
; To Unsubscribe from this Discussion, send an e-mail to > unsubscribe.lapi@elinkkc.opentext.com.>>
Chris_Hall_(linkhanduser1_-_(deleted))
Hi Matt,We got the logs and they do not show anything wrong with the searches, IN SPITE OF the error message still showing in some criteria we used.By looking at the trace files though, we noticed that the search results don't get passed back to the client. The method DispatchLLServer does not appear to have a valid object reference (see at the end of the attached trace file where it shows ObjRef: ?....), hence the aforementioned error.What could be causing that? The whole exercise takes about 40 secs between submitting the query and receiving the error message.Your help is greatly appreciated... and Happy New Year.Mo Braga - Senior Developer