Could not open connection to Search Server
I am Getting below error on this search function call-
CSPhraseConstraint phraseConstraint = new CSPhraseConstraint("OverDraft");// working
CSSearchEngine searchEng = client.getSearchEngine();// working
CSIterator csIterator = searchEng.search(workAreas, phraseConstraint); // throwing error
workAreas- is an array object
we have seperate server where Teamsite and Teamsite Search are setup.
Error-
com.interwoven.cssdk.common.CSException: (Search Server might be down : java.lang.Exception: Could not open connection to Search Server.)
at com.interwoven.cssdk.sci.search.CSSearchUtil.executeCommand(CSSearchUtil.java:145)
at com.interwoven.cssdk.sci.search.SearchServiceSciImpl.executeSearchUtilCommand(SearchServiceSciImpl.java:187)
at com.interwoven.cssdk.sci.search.SearchServiceSciImpl.searchAreas(SearchServiceSciImpl.java:773)
at com.interwoven.cssdk.search.java.SearchServiceAdapterImpl.searchAreas(SearchServiceAdapterImpl.java:60)
at com.interwoven.cssdk.search.impl.CSSearchEngineImpl.search(CSSearchEngineImpl.java:334)
at Report.getSearchResult(Report.java:128)
at Report.main(Report.java:28)
Root cause:
com.interwoven.cssdk.common.CSException: (Search Server might be down : java.lang.Exception: Could not open connection to Search Server.)
at com.interwoven.cssdk.sci.search.CSSearchUtil.exec(CSSearchUtil.java:193)
at com.interwoven.cssdk.sci.search.CSSearchUtil.executeCommand(CSSearchUtil.java:139)
at com.interwoven.cssdk.sci.search.SearchServiceSciImpl.executeSearchUtilCommand(SearchServiceSciImpl.java:187)
at com.interwoven.cssdk.sci.search.SearchServiceSciImpl.searchAreas(SearchServiceSciImpl.java:773)
at com.interwoven.cssdk.search.java.SearchServiceAdapterImpl.searchAreas(SearchServiceAdapterImpl.java:60)
at com.interwoven.cssdk.search.impl.CSSearchEngineImpl.search(CSSearchEngineImpl.java:334)
at Report.getSearchResult(Report.java:128)
at Report.main(Report.java:28)
We have checked all the services at search server (such as teamsite search, connector, connector) , all are running, we are able to do search from teamsite UI.
Here we are using CSSDK API in our custom utility to use the search. we are also able to connect to teamsite server through CSSDK API , and getting the branches, workarea etc.
Any pointer on why its not able to connect to search server?
Comments
-
Assuming your application is an external one (i.e. not running within the iw-cc webapp), you need to specify the correct properties in your cssdk.cfg (or a Properties object when instantiating the CSFactory) and provide the parameters to tell it where to find the search server, even if that's the same server as where TeamSite is installed.
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.